Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I must be overthinking this one...
Message
From
18/11/2001 15:34:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
I must be overthinking this one...
Miscellaneous
Thread ID:
00583259
Message ID:
00583259
Views:
52
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
Next
Reply
Map
View

Click here to load this message in the networking platform