Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
REFERENCING A PROPERTY
Message
From
16/05/2001 12:24:24
 
 
To
16/05/2001 10:21:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00507804
Message ID:
00507916
Views:
11
>This is a question with a very simple answer I am sure.
>
>In making reference to a recordsource and the controlsource I'm stumped on how to make refence to the controlsource once I've moved up the chain. For example
>
>THIS.PARENT.PARENT.RECORDSOURCE
>THIS.PARENT.CONTROLSOURCE
>
>THIS.PARENT.RECORDSOURCE
>THIS.CONTROLSOURCE
>
>This is where I want to be
>THIS.RECORDSOURCE
>How do I reference the controlsource at this level?

I think (bearing in mind Vlad's answer) that what you're after is the following...

I'm assuming that the above is only an example - but to continue with it...
Once you get above the object you are trying to reference in the hierarchy then you need to start refering to it by it's name (ie not x.parent)

so it would be thisform.objname.controlsource

The easiest way to find your way around the object model is by using the richtclick menu - Object list
As long as you are in a method window (ie in a form or a class) just rightclick & select object list then enter.. this will give you the shortest path from the current location to the desired object.

HTH

Will
Will Jones
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform