Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running code from a database field
Message
From
27/12/2002 10:19:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
27/12/2002 09:38:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00736050
Message ID:
00736071
Views:
12
>It is no problem, to store a compiled program in a binary memo field, copy it to a file during runtime (comma.FXP) and execute this file with "do comma.FXP"
>
>Is there any possibility to run such a compiled code directly from a field in a database and omit the copy process?
>
>Thanks in advance

Peter,
In VFP7 I did that with keeping a zipped (or encrypted) copy of source, unzip and execscript() (in older versions codeblock.prg). But I got my lesson not to do that with some code that has calls to other things like a 'do form', 'do something' in it.

BTW what's wrong with the 'copy' ? Execscript() does that behind the scenes.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform