![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I would like to load CSV data from a webresponse variable into a ListBox, but I get the error "Object reference not set to an instance of the object." Is there a way around this?
Thanks Code:
Response.Value = Request.GetResponse result = Response.GetString Response.Close Eventlist.loadcsv(result, ",", false, true) |
|
||||
|
What is the tipe of the "Response" control?
Does the getresponse statements retrieve any result?
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
|
||||
|
These are the properties and methods supported by a listbox...
Quote:
Code:
Properties and Methods:
AddCol
AddRow
BringToFront
CaseSensitive
Cell
Clear
ColCount
ColName
ColNumber
Color
ColWidth
Dispose
Enabled
Filter
Focus
FontColor
FontSize
HeaderColor
HeaderFontColor
HeaderVisible
Height
Left
LinesColor
LoadCSV
LoadXML
Name
Refresh
RemoveCol
RemoveRow
RowCount
SaveCSV
SaveXML
SelectCell
SelectedCol
SelectedRow
TableSort
Top
Visible
Width
Events:
SelectionChanged
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
|
|||
|
Oops... didn't notice the difference there
.Ok so when I changed it into a Table control, it thinks "result" is the name of the file. How can I take "response" and feed that into a file and then send that file name to this LoadCSV function? Thanks |
|
||||
|
Were does the data came from? a file or from a web site?
If all the data cames in a simple string with a know separator you can use StrSplit Quote:
__________________
Paulo Gomes Porto, Portugal PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD PPC: Qtek9000, 1GB SD DLL Version Listing |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Possibility of transfering variable value from one EXE to other EXE. | mozaharul | Questions & Help Needed | 3 | 10-16-2008 03:38 PM |
| Table1.LoadCSV | s_ostap | Russian Forum | 3 | 07-03-2008 09:30 AM |
| Dim variable c% as Double | colin9876 | Basic4ppc Wishlist | 8 | 05-28-2008 02:26 PM |
| Probleme mit LoadCSV und ANSI - UTF-8 | Holger.D | German Forum | 2 | 05-13-2008 08:23 PM |
| loadcsv and accent | claveriel | Questions & Help Needed | 10 | 11-15-2007 05:16 PM |