Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I must be overthinking this one...
Message
 
 
À
18/11/2001 15:34:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00583259
Message ID:
00583287
Vues:
17
>I have a need to create a variable on the fly that I can increment within a do while loop. The first pass it should be assigned as newvar1 with a value stored from a table. Somehow I'm unable to get the syntax correct. Where "x" is the value being incremented as it begins to loop back through, I need to attach the value of "x" on to the end of the variable name. In essence my mind goes to something like 'newvar'+m.x=(field value). I've reworked this so many different ways I'm beginning to think it can't be done. But, that seems ridiculous since this would be perfect for what I need. And I'm ok with the str() and val() commands required to make the number play nice with characters, I'm just putting it all together wrong and getting syntax errors. Any and all help is greatly appreciated, if only to maintain my fragile sanity.
>
>Thanks,
>Martha

I was going to suggest what Sergey already suggested... :)
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform