Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding method code at runtime
Message
From
12/05/2004 10:58:22
 
 
To
12/05/2004 09:35:54
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00903145
Message ID:
00903181
Views:
13
For pre-VFP8, how about
oRT = CREATEOBJECT('RTMethod')
lcTestCode = 'MESSAGEBOX("HELLO")'+CHR(13)+CHR(10)+'MESSAGEBOX("GOODBY")'
oRT.RTMethod(lcTestCode)

DEFINE CLASS RTMethod AS Custom
	PROCEDURE RTMethod
	LPARAMETERS RTCode
		EXECSCRIPT(RTCode)
	ENDPROC
ENDDEFINE
Previous
Reply
Map
View

Click here to load this message in the networking platform