Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BindEvent() and This
Message
De
07/05/2009 13:09:55
 
 
À
07/05/2009 11:18:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01398345
Message ID:
01398406
Vues:
71
>>>>I want to put the same code in headers and textboxes for several columns. The current approach is to copy the same code, but I thought BindEvent() might be a better approach. Now, the current commands include references to This, and I assume that in the delegate code, This would refer to the delegate object. Is there a way to find out the original object (e.g., some grid column, or Grid Header in the column) from which object the delegate method was called?
>>>>
>>>>TIA,
>>>>
>>>>Hilmar.
>>>
>>>Better it is to put the code into a header , textbox class.
>>
>>Hi Fabio,
>>
>>What problems did you find with BindEvent approach?
>
>I don't like hide technique programming.
>If a more explicit way exists I choice it everytime
>
>However, where it is need, I use BINDEVENT, but only where necessary.
>
>The most number of programming bug are correlate
>with the developer's brain memory capacity and the explicity of the coding.
>To minimize bugs count, minimize the first request and maximize the second.

Imho, having non-visual classes created by some PRGs 'hidden' somewhere in the project deserves to be called 'hidden programming technique' no less than bindevent coding. My preference is to use 'visual' classes (including 'custom' class) only and use bindevent technique when visual class is not available.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform