Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can code be inherited?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00649179
Message ID:
00649181
Vues:
10
>If I create a class containing any code, can that code be inherited when I place the control on a form.

It is automatically inherited.

If you place additional code on the button on the form, inheritance is broken - unless you use DoDefault() (or the old-style, now-seldom-used, scope-resolution operator ::).

HTH, Hilmar.

>
>For example:
>
>
>Lparameters param1,param2
>**Place to define variables
> varx= ""
> vary= 0
>
>**Place to Release variables
>
>release varx,vary
>RELEASE thisform
>
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform