Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Executing code from a memo field
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00528461
Message ID:
00528929
Views:
14
Thank you Terry:

Roger.

>>Thanks Larry:
>
>You might be able to doit without copying the memo to a PRG by using the MEMLINE() and MLINE() functions to populate an array and then
>for c = 1 to alen(myarray)
>&myarray(c)
>endfor
>It gets tricky if you have loops or (non-imediate) conditionals
>
>>
>>What about runtime when app is distributed to end user?
>>
>>
>>>>Hello:
>>>>
>>>>I have a table wich has a memo called 'doit' field and would like to execute code from within it depending on the record.
>>>>How do I execute it?
>>>>
>>>>After pointing to the right reccord, I tried:
>>>> &doit
>>>>
>>>>also lcDoit = table.doit
>>>
>>>With VFP 7, you will be able to use ExecScript(). With VFP 6 SP3 (and later), you have to brute force it.
>>>
>>>copy memo DoIt to MyTemp.Prg
>>>compile MyTemp.prg
>>>do MyTemp
>>>
>>>HTH.
One can acquire everything in solitude but character.
Stendhal (1783-1842)
Previous
Reply
Map
View

Click here to load this message in the networking platform