Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing the contents of a Memory Variable
Message
From
14/12/2004 09:03:44
Irv Adams
MSC Managed Care, Inc.
Florida, United States
 
 
To
13/12/2004 18:22:07
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:
00969069
Views:
10
Dave,

We tried Execscript() and you're right, it's extremely fast. Thanks again,

-Irv.

>>David,
>>
>>Thanks for the response.
>>
>>This command is being incorporated into a much larger system for the purposes of speed; many slightly different versions of the code will be submitted in succession, represented by a long string of text that is modified each time. Since it's true that all it does is store to a temp file and run it, do you think this is any faster then just FILETOSTR() followed by 'DO SomeCode.prg' ? I was hoping it could all be done in memory...
>>
>>Irv.
>>
>The Exescript is MUCH MUCH faster than
>StrtoFile(mycode)
>Compile (mycode)
>do (mycode)
>
>It's the compile that's slow, at least on our systems. The Exescript doesn't seem to have the COMPILE delay. You can't run a .prg at runtime, you need to COMPILE first.
>
>So I'd be using Exescript() wherever you can.
Previous
Reply
Map
View

Click here to load this message in the networking platform