Re: Jcl String Function
GreatDayDan <[email protected]> Fri, 13 May 2005 08:27:39 -0700 (PDT)
| Newsgroups | gmane.comp.lang.delphi.jedi |
|---|---|
| Message-ID | <[email protected]> |
Good Morning! I don't know about the JCL, but you can do it this way: Create a stringlist (sl). Assign the string to sl.Text. Then access the items in sl. sl[0] = 'First', etc. HTH...Dan'l --- gorepj <[email protected]> wrote: > Is there a function in the jcl that returns the nth > String from a > string containing a comma separated list of > sub-strings. e.g. > > Var > MyCommaSeparateString: String > MyExtractedString: String > begin > MyCommaSeparateString := 'First,Second,Third'; > MyExtractedString := > MyJclRequiredFunction(MyCommaSeparateString,1); > //MyExtractedString now contains 'First' > MyExtractedString := > MyJclRequiredFunction(MyCommaSeparateString,2); > //MyExtractedString now contains 'Second' > ... > end; > > > ____________________________________ Every day is a Great day, but some days are GREATER than others! __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Delphi-JEDI/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/