Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding Object Values
Message
 
À
08/08/1998 12:12:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00125038
Message ID:
00125047
Vues:
12
When at the Form Level, I prefer using This as opposed to ThisForm. Yes, ThisForm will work, but it makes code a little less readible. When I see a code block and This is used - it is clear to me what is going on. Arbitrarily referring to ThisForm can lead to sloppy code. About the only time I actually reference ThisForm is when I need to actually reference the form....period. I don't use ThisForm to get to other objects. In those cases, I like relative referencing with Parent. This way, I can move groups of objects in one container level to another without breaking code.



>Hello all,
>
>I figured it out. It was This.Parent.xxx + etc. However, Is there a rule of thumb on when to use THIS v. THISFORM, v, THIS.Parent etc ?
>
>TIA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform