Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement