Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Limitations
Message
 
 
To
09/07/2002 18:12:07
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00676849
Message ID:
00676873
Views:
21
Mathew,

>Three questions?

You should probably have posted this as two separate messages.... to keep threads coherent.

>1. Is there a limit in VFP for the number of new methods you can create?

I do not know of any limit to the number of methods you can add to any given subclass. If there is a limit, no good class design would ever come close to hitting it. Classes should have well defined operation. You shouldn't have just one class that does everything under the sun, Have several small classes that each do their own little thing.

>2. Can you inherited more than one custom class in a form?
>
> * I have a form class and in that form I inherited a custom class to do
> some common processing. When I added two more method to the existing
> custom class, but I can see it in the class browser.
> (Related to question 1 and 2)

I'm not sure I'm following your question. VFP does not allow multiple inheritance. A form can contain any number of objects derived from any number of classes. When you add methods in the designer these methods can only be added to the outermost entity. If you have a form class that you've already dropped a class into, you can not add methods to that contained class. You have to go back to the class itself and add the method.

>3. How can I enabled and disabled toolbar buttons based on user's selection?

You can provide whatever logic you need to set the Enabled property of the objects in the toolbar.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform