Hi Klaus,
(Thursday May 14 1998 08:12) Klaus Meinhard to Ted Menks about: parsing
KM> Did you get my message regarding this topic? I think the answer is to
give
KM> each data field a fixed length (@format might be handy here) and build a
KM> line from that. Then "parse" that line with @instr and you will get
KM> everything back into your variables.
I got it, and as far as I recall I've answered that that would be an option,
as long as the number of parameters and the required fixed length thereof
isn't too large. If the syntax of the parameter-line is variable, or if some
of the parameter-strings can be *very* long, the fixed-length data-fields
would tend to make for a *huge* data-file.
But then again, I'm not in *need* of a short-term answer, I'm rather just
poking around to find out what we all can come up with. Maybe we'll find a
nice standard that uses nothing but 4Dos and is still reasonably fast,
reliable and versatile, and can thus be used for EVERY parsing job ;-)
Live long and prosper,
Ted Menks 2:2449/236.51 / 2:284/412.51 PGPkey: 2048/1B2ACCED (by RRQ)
... If at first you don't succeed, have somebody else do it for you!
--- 4Dos v6.01a ---
(2:2449/236.51)
---------------
* Origin: It's the 4Dos way! (Teddy's Land +49-5971-14966
|