Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best practice for referring to form in form methods.
Message
 
 
À
05/12/2008 11:47:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01365701
Message ID:
01365704
Vues:
10
I use thisform, but thinking on the matter I would say 'this' is better.

>When I’m writing a form class or a form.scx with custom methods, what is the best practice for referring to the form itself in its method code?
>
>Should you use:
>
> This.PropertyName and This.MethodName()
>
> or
>
>ThisForm.PropertyName and ThisForm.MethodName()
>
>
>So it’s a question of “this” vs. “thisform”
>
>In the case of a form they both get you to same place.
>
>So, what are most of you doing?
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform