Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple class question
Message
 
To
08/01/1999 22:41:15
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00173492
Message ID:
00174401
Views:
27
Hi Kenneth,

>Occasionally I use the :: Scope Resolution operator. How does this differ with DoDefault()? Did I miss something here?

Both are quite similar, bot execute code in a parent class. DoDefault() automates this task, this means it always calls the next level of the class and object hierarchy. With the scope resolution operator you have to take care of it yourself. It's easy with simple classes, because you know the parent class. But with composite it's more difficult, because here you not only have the class hierarchy, but also the object hierarchy.

I personally prefer to use DODEFAULT(), except when I want to execute the native VFP behavior. In the latter case I use for example textbox::KeyPress().

Christof
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform