Techware Labs Header

Forums have moved

See this announcement for more details, or just go directly there.

  #1  
Old 09-26-2001, 01:27 PM
kiddo
 
Posts: n/a
Default 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
???
Reply With Quote
  #2  
Old 10-08-2001, 04:49 PM
Cromoly
 
Posts: n/a
Default 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.
Reply With Quote
  #3  
Old 10-08-2001, 05:02 PM
Keefe Keefe is offline
Administrator
 
Join Date: May 2002
Location: Wisconsin
Posts: 2,337
Send a message via ICQ to Keefe Send a message via AIM to Keefe Send a message via MSN to Keefe Send a message via Yahoo to Keefe
Default 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.
__________________
It's crazy I'm thinking, just knowing that the world is round.
-http://www.techwarepc.com/ - The Technology Experts
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:04 AM. Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Forum style by ForumMonkeys.