PDA

View Full Version : Can some1 help me with VB?


kiddo
09-26-2001, 02:27 PM
Hey guys, i'm new here and i hope to have a good time in this club, i was wondering if someone can help me out with a project, the project consist on a form that has a listbox... the project has to read some data from a .txt file, and the display it on the listbox...
i'm having trouble with the code that tells the program to read this file!!! the .txt file has simple data like:
"diego maradona","123456789"
"Candy Jam","000000000"
and so and so
this represent a name of a person and its SS#
hope that some one can help me out
???

Cromoly
10-08-2001, 05:49 PM
Open App.Path & "thefile.txt" For Input As #1
while not EOF
SPAM Input #1, buffer
SPAM parse(buffer)
endw
Close #1

It's been a while but that should be somewhat correct. Try messing about with it until it works. Buffer should be a string.

Keefe
10-08-2001, 06:02 PM
I know a little bit of Vb and that looks right to me. SPAMJust test it out and see if it works.