Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which THISFORM?
Message
 
To
01/04/1997 14:21:49
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00026438
Message ID:
00026450
Views:
34
>Here is what is probably a dumb question: I have a form in a VCX file that I sub-class all the time as a base form for my apps. This form has, among other things, a SAVE button, cmdSave, which is not enabled initially. If I refer to THISFORM.cmdSave.Enabled in the VCX, will THISFORM be interpreted as the VCX version or my sub-class? In other words, if I change cmdSave.Enabled to .T. in a sub-class, how will VFP interpret the following code in the VCX Unload event?:
>
>IF THISFORM.cmdSave.Enabled = .T.
> DO SOMETHING
>ENDIF

John

It should be interpreted as a form object and should work.

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Previous
Reply
Map
View

Click here to load this message in the networking platform