Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parse a variable
Message
De
15/07/2002 20:14:59
 
 
À
15/07/2002 20:07:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00678918
Message ID:
00678921
Vues:
17
>I have a parameter that I need parsed into different pieces. Basically a user passes a parmeter in the following format: CreateObj("myObj", "1, 4, 5")
>I need to transform the second parameter to look like: '"1", "4", "5"'
>I'm getting bogged down and I need to finish this out. Anybody have a quick routine that will do this form me?

Hi, James.

Try this:
x = "1, 2, 3"

For i=1 to ALines(temp, x, .T., ",")
   ? temp(i)
Next 
You´ll figure out how you can play with the results. ;)
Claudio Lassala
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform