Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can i override the event code for the .vcx in my form
Message
 
À
22/07/1998 07:42:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00120086
Message ID:
00120267
Vues:
23
>help!!!!
>
> can i override the event code for the .vcx in my form
>if so how & where that code will be written to

Rahd,

Jerry gave you the correct method if you're using VFP3 (the scope operator) and Jim the correct VFP5 method (doDefault). If you want the original code in your base class to fire PART of the time, then 'NODEFAULT' should be used to prevent it firing.

For example:
do case
case myvar = 0
   ** Want the default code
   DoDefault
case myvar = 1
   ** Want your code here
   Do thisform.newMethod()
case myvar = 2
   ** Don't want ANYTHING to happen
   NODEFAULT
endcase
HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform