Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Execute a command contained in a string
Message
 
 
To
05/11/2004 09:08:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00958462
Message ID:
00958477
Views:
13
Ger,

If m.Value is a changing memvar name you can actually use name substitution:
lcOne = ""
lcMemVarName = "lcOne"
lcValue = "this is a test"
store lcValue to (lcMemVarName)
? lcOne
>I have a string as follows:
>
>m.test = "STORE 100 TO m.value"
>
>I need to execute the command that is inside the string. How do I do this?
>
>I tried EVAL() but that doesn't seem to work.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform