Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can i override the event code for the .vcx in my form
Message
 
To
22/07/1998 07:42:02
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00120086
Message ID:
00120267
Views:
25
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform