Mark Derricutt wrote:
>
> The problem I found with Comma Text, is if you assign the string: 'This is
> 1, this is 2' to .CommaText you end up with 6 entries in the stringlist,
> cause it delimits on everything, not just commas.
The trick there is to make sure you've used the CommaText property of a
stringlist to build your SourceList strings in the first place. Then you
have (relatively) fewer problems with spurious splits. The only remaining
problem is that you can lose the last entry if it's blank.
The only real solution I've found is to write join/split routines to
properly format the strings. I wrote a simple join routine and a versatile
split, just in case I wanted to import an oddball CSV format... and it seems
lots of programs have different ideas on how CSV should look, so 'oddball'
is standard :>
--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"