Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sharing methods between controls...
Message
 
À
10/11/1996 20:34:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00011940
Message ID:
00011956
Vues:
36
>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...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform