Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
REFERENCING A PROPERTY
Message
De
16/05/2001 12:24:24
 
 
À
16/05/2001 10:21:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00507804
Message ID:
00507916
Vues:
10
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform