Opps should read
 
          TempList.Text := SourceList[Counter].CommaText;
 
Rob
Software engineer
Wild Software Ltd
[EMAIL PROTECTED]
----- Original Message -----
Sent: Friday, May 04, 2001 12:18 PM
Subject: Re: [DUG]: Accessing 'Fields' in a String List

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 -----
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

Reply via email to