Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running both the class method code and the userdefined
Message
From
28/07/1997 21:02:51
 
 
To
26/07/1997 01:46:11
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00041688
Message ID:
00042044
Views:
39
> this.parent.parent.Init() > > by this way you'll execute grandfather class init method. You can > include > Parent clause as much as you need. Actually, this won't run the code from the parent Class, but it will run he code from the parent Container. If you've got a subclassed button on a pageframe on a form, and you want ot run the code from the parentclass of the button, then you run: =eval(this.class+"::init()") This will generate an expression that looks something like: =eval("sys_commandbutton::init()") which is what you want. The code that you suggested will run the init event of the, lets see.. Form PageFrame Page Button ... the PageFrame, which may be what you want in other cases, but not here.
Paul Russell
EMail: prussell@fox.nstn.ca
Phone: (902) 499-5043
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform