Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object Reference List
Message
 
 
À
11/05/2000 19:25:31
Gerald McKinsey
Keystone Consulting Services, Inc.
Yorktown, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00368889
Message ID:
00368904
Vues:
14
Brian,

You are setting yourself up for big time problems going down this path. What happens when another containership layer is added later? All your code breaks. Objects should only reference 4 things IMHO: 1) themselves this 2) their parent this.parent, 3) the form thisform, 4) their containership siblings this.parent.Sibling. The last one isn't too desireable but I do it when it's the best way. Any other references couple your objects in ways that are prone to failure in unexpected ways.

You can traverse the .parent containership hierarchy at design time:

aselobj( laObject )
?laObject[1].parent.name
?laObject[1].parent.parent.name


>Is there any way to access the object reference list that you access through the code screen programatically? I am attempting to write a builder that has a field that has to be filled in with the full object path (ie This.Parent.Parent.ComboBox) and am trying to give the other programmers a way to do this visually instead of having to type in the path manually.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform