Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing the contents of a Memory Variable
Message
From
12/12/2004 22:32:46
 
 
To
12/12/2004 20:56:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00968344
Message ID:
00968654
Views:
8
>To add to what Sergey said, (ie the code is executed as a separated .prg (.fxp really) in a temp directory)...
>All your local variables will be out of scope, so any variables you require should be PRIVATE. If you need a reference to thisform or this etc you'll need to declare private vars to reference them. In addition any resources that may be in your .exe at run-time, like .bmps etc, won't be visible to the .fxp

That's all correct as far as I know, but things seem to be different when it comes to SETs like PATH and CLASSLIB. These do not appear to be 'available', yet any changes you make to them appear to take effect throughout the running EXE.
At least that's how I've interpreted some observations in my code executing in scripts.

cheers


>HTH
>
>
>>Sergey,
>>
>>That's it! Much thanks...
>>
>>>Irv,
>>>
>>>Check ExecScript() function.
>>>
>>>>
>>>>Is there a way to 'DO' the contents of a memory variable, which could contain many lines of code? Similar to a 'DO' for a PRG file, but this set of commands would exist only in memory?
>>>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform