Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parsing a sequential file delimited by semicolons 2

Status
Not open for further replies.

ribsa3

Programmer
Jun 17, 2003
56
Hi there

I am having problems finding anything dealing with parsing text beyond standard behavior.

By this, I have a fairly conventional text file - besides the fact that it is semicolon-delimited. I am wondering what to write between..

Open "c:\myfile.sdv" For Input As #1

.. and ..

Close #1

.. to make it fill my arrays with information constrained between semicolons.

A sample line in the file is:

4;2;SQLSERVER:MyDatabase;ACME Inc.;


Does anyone feel like jotting down a little bit of sample code? If you really want to be valiant, I am populating a listbox with - in this case - text represented in the sample by ACME Inc.

Any help would be greatly appreciated!

Kindly,
-B



--------------------------------------------------------------------
Do what you wish, as long as it harms no one. That includes yourself.
 
Take a look at the Split function

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Have yourselves a star!

Putting your two heads together, I got myself a simple, yet great solution

Thanks!



--------------------------------------------------------------------
Do what you wish, as long as it harms no one. That includes yourself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top