Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Commands in memo field
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00507485
Message ID:
00507502
Views:
16
>Or you can try:
>
>strtofile(table1.memofield, 'c:\apractic\junk\table1.prg')
>compile 'c:\apractic\junk\table1.prg'
>do 'c:\apractic\junk\table1.prg'
>

Right, and this is what I usually do.

>
>>Hi Melvin,
>>
>>If you're trying to create Command Window emulator, there are few entries in Download section here for you, one of them by Walter M.
>>
>>Check them out first.
>>
>>>Hi to all, I hope anyone can help me on this please.
>>>
>>>Rigth now I'm trying to put som VFP commands inside of a memo field, the idea is read that commands and execute them.
>>>
>>>For example, supose that you want to put this commands into the memo:
>>>
>>> thisform.caption = "test"
>>> thisform.backcolor = 255,255,255
>>> thisform.refresh
>>>
>>>Well in the form I have a method that read the memo field line by line and execute those lines in order. Something like:
>>>
>>> a = memlines(memofield)
>>> for i = 1 to a
>>> mycommand = mline(memofield,i)
>>> &mycommand
>>> endfor
>>>
>>>This way runs well until it find any type of compound command like: if .. endif, for .. endfor, etc., and the macro subs can´t evaluate that.
>>>
>>>So I want to know if there is any other way to do that or simply I can't do that.
>>>
>>>Thanks in advanced.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform