Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to put Common procedure for all forms
Message
De
07/03/2002 09:25:39
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
07/03/2002 09:19:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00629468
Message ID:
00629528
Vues:
10
>Hi Thanks,
>
>I got it using the other method, but tell me how can i create the subclass for the form and add the procedure and how can i access from other forms.
>
>Murali.

Take a form with the basic procedures, and give the command "Save as Class". Lets say you call the class "cDataForms", and save it in "MyClasses.vcx".

Then, base all your forms on this class, for instance, with:
CREATE FORM Client as cDataForms of MyClasses
Any changes done in the base class will affect all forms based on the class.

I suggest you read the corresponding chapters (about OOP and Inheritance) in the programmer's guide.

HTH, Hilmar.
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