Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing a file that's not quite comma-delimited
Message
From
16/07/2007 11:41:22
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
16/07/2007 11:18:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01238841
Message ID:
01240707
Views:
32
I think my thought was to have separate segment cursors because of the 255 field limit. There could be, in another application of this functionality, 10 or 15 segments. I would not be able to handle all of them in one cursor (MSH_Field001, MSH_Field002, EVN_Field001, etc) as I would run out of space. I thought that having the cursor in different segments with a unique key tying them together was smart. Then after talking with you, thought that having a driving cursor for the handling of the message-level stuff would allow me to keep up with what message have been processed and just use the segment cursor to process the data through my data dictionary. But, maybe I'm way off...

>Jay,
>
>I guess you could. I don't see any advantage of taking the extra step of putting the segments into cursors first, only to make another pass on the data in cursor form.
>
>But that's just my opinion.
>
>
>>Hmmmm... Ok, so I could grab whatever number of messages there are, put them into memo fields in rows of a cursor to hold current messages, scan through, process each one separately to populate the process tables, clear the message cursor, then start over again with any new messages?
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform