Export to CSV - proper format
Fairlight
fairlite at fairlite.com
Thu Oct 21 14:20:18 PDT 2010
With neither thought nor caution, Brian K. White blurted:
>
> In any event the most convenient way I found so far to do that kind of
> conversion (inserting more characters into the output than were in the
> input), isn't exactly convenient or efficient, but it's the most
> optimized I have come up with so far. you make a small gosub that loops
> through every character in a variable, and use it before every export
> assignment that might want that kind of translation.
Instead of going through every character in the loop, why not just use
instr() in the loop, and save yourself a bunch of iterations? Mark the
place you last found the character, add however many characters you may
have added, and use that as the place for the next instr().
Far more optimised.
Next major version of fP should have PCRE support, with commands that
actually take advantage of it (like a SED command that'd let you do a
global search/replace based on PCREs), and edits that will take -either-
regular edit syntax -or- PCRE syntax for their atomic parts. Technically,
this should have been put in years ago.
mark->
--
Audio panton, cogito singularis.
More information about the Filepro-list
mailing list