Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing Code From A Memo Field?
Message
From
19/03/1998 15:58:29
 
 
To
19/03/1998 15:55:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00085742
Message ID:
00085796
Views:
33
>>>Michael,
>>>
>>>>Hmm..that was too easy. Why didn't I think of that? Sometimes I wonder if I'm not going through premature senility.
>>>
>>>That method will work, but only if you are running within VFP - a distributed executable doesn't have access to the compiler so cannot compile and run a prg file.
>>>
>>>If you want to re-distibute you could look for something called CodeBlock (which may be in the library here).
>>
>>If the code in his memo filed is a one liner, he could get the contents into a memvar and use either &Memvar or EVAL() to execute the one line of code..
>
>If it's multi-line memo then you can go through the loop:
>
>for n=1 to memlines(memofield)
> cCommand=mline(memofield,n)
> &cCommand.
>endfor
>

Good point Ed... Hadn't thought of that..
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform