A possible ... A TList of TStringLists ...
Regards
Paul McKenzie
=========================
Paul McKenzie
Jetbet II Developer
=========================
[EMAIL PROTECTED]
Ph: (04) 576-6822
T.A.B. National Office
106-110 Jackson Street
Petone
New Zealand
____________________Reply Separator____________________
Subject: Re: [DUG]: Accessing 'Fields' in a String List
Author: [EMAIL PROTECTED]
Date: 04/05/2001 12:18
In this case we usually create a tempory stringlist and assign one line of
the source list to it
i.e
TempList.Text := SourceList.CommaText;
In your case this leaves templist with 5 items which you can access as
normal, eg TempList[3] would be the third comma seperated item in
SourceList.
Hope this helps.
Rob
Software engineer
Wild Software Ltd
[EMAIL PROTECTED]
----- Original Message -----
From: Mark Howard
To: Multiple recipients of list delphi
Sent: Saturday, May 05, 2001 6:15 AM
Subject: [DUG]: Accessing 'Fields' in a String List
Hi
I have a TStringList in which each of the strings is itself a comma
delimited list of 5 fields.
Is there a TStrings method that lets me access these fields directly, or
do I have to chop the string myself?
TIA
Mark(See attached file: att1.htm)
(See attached file: att2.eml)
|
In this case we usually create a tempory stringlist
and assign one line of the source list to it
i.e
TempList.Text :=
SourceList.CommaText;
In your case this leaves templist with 5 items
which you can access as normal, eg TempList[3] would be the third comma
seperated item in SourceList.
Hope this helps.
|
att2.eml