Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pulling info out between commas
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01281414
Message ID:
01281424
Vues:
7
Another option is using GETWORDNUM()
lcStr="23,5,18,8,12"
nCount = OCCURS(",",lcStr)
? nCount
FOR i = 1 TO nCount+1
   ? GETWORDNUM(lcStr,i,",")
ENDFOR
>I have a string that is supplied to my program from another that for some reason I cannot remember how to extract the values between the commas.
>
>For example, I need to do some processing on a small string, "23,5,18,8,12", and return to my procedure 23 5 18 8 12
>
>I do not need to store it, I know how to append with this but I just want to process the numbers or possibly the characters.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform