Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to modify Event/Method programatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00537145
Message ID:
00537179
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform