Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Execute code in a memo field
Message
From
23/10/1997 00:05:48
 
 
To
22/10/1997 10:41:53
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00055964
Message ID:
00056256
Views:
34
>>>>>>Hi to all,
>>>>>>
>>>>>>I've to put some line of code in a memo field a execute this code in my form's method.
>>>>>>I've tried with macro substitution but if I've two or more lines of code I've a "Syntax error". Why ?
>>>>>>
>>>>>>I can't read line by line the memo because I can have a IF ELSE ENDIF statement, someone say me to copy this memo in a TEMP.PRG and DO TEMP.PRG but this is slow and my form have to do this operation several time in Init() or on a event.
>>>>>>
>>>>>>How can I execute my code in the memo ?

Renato,

Your memo field contains a single function, not a series of command lines. I've managed to convince myself the hard way over time that a function contained in a memo field cannot be executed other than by putting it out to a prg - ie - using TextMerge, for example, and then 'do-ing' the prg. You're right when you say it's slow, but there just seems to be no other way to do it.

Alan
Previous
Reply
Map
View

Click here to load this message in the networking platform