Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclass command button
Message
From
11/06/2003 13:12:34
 
 
To
11/06/2003 12:49:38
Fabio Barbosa Silva
Jms Assessoria E Consultoria Ltda
Belo Horizonte, Brazil
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00798492
Message ID:
00799026
Views:
33
If you have a execute your class after your command , paste the command dodefault() in your event.
Dodefault() - > Execute a cod of class
Nododefault() -> Not Execute


FYI, It must be NODEFAULT without parenthesis... if you code with parenthesis in VFP8 you'll get an Error (not in previous version).
oC = CREATEOBJECT("MyLegacy")
OC.ShowMe()
DEFINE CLASS myLegacy as myCustom
  PROCEDURE ShowMe
     NODEFAULT() &&Later, use it without parenthesis...
     MESSAGEBOX("New Hola World")
  ENDPROC
ENDDEF

DEFINE CLASS myCustom as Custom
   PROCEDURE ShowMe
      MESSAGEBOX("Hello World")
   ENDPROC
ENDDEFINE
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform