Avatar of simonwait
simonwait
Flag for United Kingdom of Great Britain and Northern Ireland asked on

VB Strip data from CSV log

Hi,

Using VB6 I am trying to open a log file and then display in a textbox (txtOutput) certain information.  I have included a csv as an example.

I need to open the csv and search for the 1st instance of "PBSTAT_START".  The timestamp for that line should be returned.  If there is no such line then "NO MOVES" should be returned and the sub should exit.

If "PBSTAT_START" is found then the file should be searched for the number of lines which have "PBSTAT_START".

Does this make sense?

Cheers
Visual Basic Classic

Avatar of undefined
Last Comment
Martin Liss

8/22/2022 - Mon
Martin Liss

You forgot the attachment.
simonwait

ASKER
ASKER CERTIFIED SOLUTION
Martin Liss

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Martin Liss

I updated the code above.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes