Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing a file that's not quite comma-delimited
Message
From
11/07/2007 19:45:22
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
11/07/2007 13:35:49
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01238841
Message ID:
01239551
Views:
12
I was playing around with this and can't see how Alltrim(laFields[2]) = "MSH" or whatever segment ID. The laFields array has a row for each segment, but there is only one column and it contains the entire segment value, not parsed elements. I must be missing something...
>FOR ix=1 TO alines(laLines,m.lcSample)
>   = alines(laFields, Alltrim(Str(m.ix)) + "|" + laLines[m.ix])
>   Insert into ("Curs_" + Alltrim(laFields[2]) ) from Array laFields
>endfor
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform