Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use an oApp object
Message
 
À
24/01/2001 07:46:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00467798
Message ID:
00467809
Vues:
11
Nuno, thanks for your reply.

I dont follow what you suggest.
I have an Application Object ,based on a a Container class, which has a number of Methods, one of which is to Validate fields from my form.
So within the Validate Method of my Oapp class, I want to refer to fields on the form:
What is the correct way to do this:
oApp.ThisForm.Myfield or
This.Myfiled or
thisForm.MyField ....

I am just confused as to how to refer to the form properties from within my application class.

Regards,

Gerard






>Gerald
> That is the BaseClass of the compoment ?
>
> Try Setting
> This.Myproperty = 'Abc' .....
> or
> This.Parent.Myproperty = 'Abc' .....
>
> The error that gives you is because the primary object of the class is not a Form ( maybe a Container / Custom ...).
>
>Nuno Brito
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform