Subject: Re: [DUG]: Accessing 'Fields' in a String List
From: "Robert Martin" <[email-masked]>
To: Multiple recipients of list delphi <[email-masked]>
Date: Fri, 4 May 2001 12:18:14 +1200

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