Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enviroment variable
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00758994
Message ID:
00759179
Views:
16
Nice try, but it won't work.

Every RUN command gets its own environment. As soon as it's done, that environment (and the variable you've set) is released.


>You can use the getenv() function to read the variable. You can set the variable in dos or use the run command to set the variable in dos from within fox
>
>eg:
>* Set var
>lcCmd = "set abc=123"
>run lcCmd
>
>* Read var
>
>lcVal = getenv('abc')
Previous
Reply
Map
View

Click here to load this message in the networking platform