Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return item number of string in a delimited list
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01143062
Message ID:
01143064
Vues:
14
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform