Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom Class Problem
Message
From
19/11/1999 16:12:41
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00293267
Message ID:
00293304
Views:
22
>Thanks for your answer.
>But maybe I don't understand you.
>
>Ex. ResetFields() in cntaddress (Address Class)
>Inside this method:
>
>WITH .... (what i need to put here so it works, no matter where the class is on the form)
> .txtaddress.value=""
> .txtapt.value=""
> .txtcity.value=""
> .
> .
> .
>ENDWITH

You can use
WITH THIS.PARENT...(etc)
as needed.

One neat trick: when you're in a method window, you can right-click and select "Object List...". If you select an object to reference from the list, a RELATIVE reference will be generated automatically.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform