Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coding Standards
Message
From
09/07/1998 09:24:26
 
 
To
08/07/1998 17:34:51
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00115272
Message ID:
00115672
Views:
22
Hi Arnon ---

>
>yes , you are - George talked about delimited list as "item1,item2,item3"
>but you can still use a for loop
>do something like :
>
>
>LPARAMETER tcString
>* tcString is strings like "item1,item2,item3"
>LOCAL lcString,lnNumOccurances,lnI,lnPos
>
>lcString=tcString+","
>lnNumOccurances=LEN(lcString)-LEN(STRTRAN(lcString,","))
>
>FOR lnI=1 to lnNumOccurances
>    lnPos=AT(",",lcString,1)
>    * you can do whatever instead of printing
>    ? LEFT(LEFT(lcString,lnPos-1)
>    lcString=RIGHT(lcString,len(lcString)-lnPos)
>ENDFOR
>
>
>Arnon

Yup...that too. :-)
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform