Techwarelabs Community

Techwarelabs Community (https://www.techwarelabs.com/community/index.php)
-   Software - Applications, Programming, and Games (https://www.techwarelabs.com/community/forumdisplay.php?f=13)
-   -   Can some1 help me with VB? (https://www.techwarelabs.com/community/showthread.php?t=960)

kiddo 09-26-2001 01:27 PM

Can some1 help me with VB?
 
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 04:49 PM

Re: Can some1 help me with VB?
 
Open App.Path & "thefile.txt" For Input As #1
while not EOF
  Input #1, buffer
  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 05:02 PM

Re: Can some1 help me with VB?
 
I know a little bit of Vb and that looks right to me.  Just test it out and see if it works.


All times are GMT -5. The time now is 04:22 PM.

Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.