Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use an oApp object
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to use an oApp object
Divers
Thread ID:
00467798
Message ID:
00467798
Vues:
49
I have an application object which I have a routine in to do screen validation

In my screen , in the valid of my Save Button I do
oApp.MyValidate

In oApp.MyValidate i have code which checks form properties
e.g. If ThisForm.Myproperty = 'Abc' .....

but i get a 'object is not contained in a form' error message

I had this code originally in a Form Base Clas method (and it worked fine) but took it out and put it into my Application object to make it more OOP, so that I could use the same code from other parts of the application.

Are there certain things you cant do from an App object or have I missed
something in the coding.

Regards,

Gerard
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform