Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executing the contents of a Memory Variable
Message
De
14/12/2004 09:03:44
Irv Adams
MSC Managed Care, Inc.
Floride, États-Unis
 
 
À
13/12/2004 18:22:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00968344
Message ID:
00969069
Vues:
11
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform