Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get the nth element of a list
Message
From
19/09/2003 06:41:59
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00830591
Message ID:
00830599
Views:
19
>Is there a quick way to get the nth element of a comma delimited list? I thought there was an nth() command but I must be mistaken. Is it best to convert the list to an array?
>
>Many thanks
>Caroline

Caroline,

this ?
GETWORDNUM(cString, nIndex[, cDelimiters])

nth = GetWordNum('1,2,3,4', 2, ',')
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform