Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add Property or Method to Control
Message
 
 
To
17/12/1998 07:51:02
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00168417
Message ID:
00168640
Views:
24
Karl,

In the form/class designers you can only add properties and methods to the outermost object. So in the form designer that is the form (or maybe formset).

If you want to add something to a textbox you need to subclass the textbox and add to the subclass in the class designer. Then use your textbox class instead of the VFP baseclass. You can use the command:

create class cTextbox of mylib as textbox

>It is easy to visually add a property or method to a form (Form/New Property) or to a class (Class/New Method).
>
>My VFP Bible (Using VFP 5 by Michael Antonovich) indicates that you can add properties and methods to controls and forms. It shows an example for a form but not for a control. The book has examples where a method is added in code with: PROCEDURE - END PROCEDURE.
>
>I would like to be able to add a method to a textbox control visually. Can this be done? How?
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