Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use an oApp object
Message
 
To
24/01/2001 07:46:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00467798
Message ID:
00467809
Views:
10
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform