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 TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting plain text

Status
Not open for further replies.

kabluzy

Mechanical
Joined
Feb 10, 2003
Messages
16
Location
TT
Hi. I have some data in a text file, and I need some help to format it. The data is not split into lines, but is deliminated by semi-colons. I need to split it into lines after each semi-colon, then read each value so that I can use it in a program.

eg. 123 f507 287; e23 234 453; 453 543 d34; 453 345 345;

If I split the data into lines, it may generate over 5000 lines of code. Any example codes are apprciated.

Cheers,
 
Use the split function
Dim MyData() as string
MyData=Split(YourData,";")
Then each element of MyData contains a value
eg
For i = 0 to ubound(MyData)
'do your stuff with MyData(i)
next
 
Thanks Francis.
I will try it over the weekend, and let you know how it turns out.

 
Ok. Thanks. Eventually got it to work.
Now I am just working on a progress bar for it.

Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top