Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sharing methods between controls...
Message
 
To
10/11/1996 20:34:57
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00011940
Message ID:
00011956
Views:
24
>Another stupid one :)
>
>In Visual dBase I used to write a piece of code and use
>it as generic method that I would call from any control,
>or, to be more technical, I could attach it as a method
>to any control. Is there any similar technique in VFP?
>And also, in VDB there was a pretty powerful tool called
>Code Block, that looked very much like in-line functions
>in C++ :
> Define Class MyText of Text ;
> Properties ;
> Name = "MyTextBox" ;
> OnChange {;This.Value = Form.Text}
>
>Is there something similir in VFP?
>
>Thanks in advance!


in vfp you can put this method in a base class and use inheritance to access this method in the future. of course, if you need this method in different objects, you'll need to add this method in each type of object...
Previous
Reply
Map
View

Click here to load this message in the networking platform