|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
VeriSign Code Signing Digital Certificates provides assurance to end users. Read about this and more in the free white paper: “How to Digitally Sign Downloadable Code for Secure Content Transfer.” Learn More! |
|
#1
|
|||
|
|||
|
Trouble loading data into a list box
I'm trying to get data from a comma-delimited text file online and put the data into a list box. I've used something like this..
PHP Code:
To open regular files that sit on the users computer but I've never had any luck grabbing info from the web. Or putting it in a list box. I tried PHP Code:
So, the question i'm asking is, how would I retrieve the data from the comma-delimited text file on a web server and have it populate a listbox? I'm sure for the list box, i'll need to put the items from the text file into an array and then go through the array and add each item as I go, but getting to that point is a little harder than I thought. Thanks in advance. |
|
#2
|
|||
|
|||
|
I suspect you'll need to use the webbrowser control or the internet transfer control to get the file into a variable that you can subsequently work with to load your listbox.
|
|
#3
|
||||
|
||||
|
Doug is correct. You will have to use an activex control or an api from the wininet dll to access the intranet and access the page through those methods.
VB does not support accessing url addresses through the open function. |
|
#4
|
|||
|
|||
|
Ok, I figured i'd have to use something along those lines. So, the browser control then? I'll have to work on that and see what I can come up with.
And would anyone be willing to supply a little snippet? Thanks again |
|
#5
|
|||
|
|||
|
U can Use MS internet control to realize it!
U can find it in the http://www.freevbcode.com/ShowCode.Asp?ID=2330 |
|
#6
|
|||
|
|||
|
I can't use the inet control. My copy of vb doesn't allow it.
I'm able to open the text file in the browser control, but I want to get that text file (comma-delimited) into the list box. This is where i'm stuck. Anyone? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Trouble loading data into a list box |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|