Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return item number of string in a delimited list
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01143062
Message ID:
01143064
Views:
13
>Is there a command that will return the item number of a string in a delimited list?
>nITEM = ???('Feb','Jan,Feb,Mar,Apr') and nITEM would equal 2

May be
mystring = 'Jan,Feb,Mar,Apr'
searched = "Feb"
ALINES(myarray,mystring,1,",")
nITEM  = ASCAN(myarray,searched)
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform