Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to modify Event/Method programatically
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00537145
Message ID:
00537179
Views:
21
>If I place a class on a form I can easily change the code for a method or event. If I instantiate a class using CREATEOBJECT() in code, how do I make the same code changes to a method or event?

this sample builds method in subForm

frmForm=CREATEOBJECT('subform')
frmForm.show
read events


DEFINE CLASS subForm AS FORM &&--------------------------------------
AUTOCENTER=.T.
SHOWWINDOW=1
ALWAYSONTOP=.T.
VISIBLE=.T.
WIDTH=300
HEIGHT=200
BORDERSTYLE=2
MAXBUTTON=.F.
MINBUTTON=.F.
CAPTION=[Class form]
* Define class procedure
PROCEDURE CLICK
messagebox([CLick])
ENDPROC

ENDDEF &&-----------------------------------------------------------
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform