Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing a file that's not quite comma-delimited
Message
From
10/07/2007 14:41:17
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
10/07/2007 12:50:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01238841
Message ID:
01239033
Views:
21
That was incredibly nice of you Steve. Thanks!

I have an error on this line when trying to run it:
		oTemp = NEWOBJECT('ColManager','coll.vcx')
It can't find the class, but I put the class files in the same directory as the program. I also set classlib to it. Then I tried using the code-based (non-vcx) version that I got using the class browser, but I'm not sure of the call syntax when it is defined in the program as opposed to the VCX.

UPDATE: Got it! Just had to leave out the coll.vcx part of the NEWOBJECT. Thanks again!

>>>Very similar to EDI. Is there always a CR, LF, or some sort of character at the end of each record (which is called a segment in EDI terms)?
>>
>>I haven't seen the output specs in detail, but it looks like there is. Peter posted some code that looks like a good start. Did you have any other ideas?
>
>Okay, this code requires uses Vlad's collection class: Download #9858 < update > Hmmm...apparently I've made some sort of change to his class. Maybe it will work as is.
>
>The edisegment class below probably could use some improvement, but it works. This is just an example showing how it parses.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform