Information générale
Catégorie:
Codage, syntaxe et commandes
>>There's one problem with this: if Thisform.MyObject doesn't exist at all, I believe you'll generate an error. In addition, this code is not as clear as to intent, making maintenance more difficult in the long run.
>
>David,
>
>Nope, you just get U as the return type for undefined.
>
>JimB
I think David is somehow right. The code loses in readability. But I like it.
It may also give you a problem on a long run if MS decides that Name is no longer a property for all objects. After all, is not specified that all objects have it. :)
Vlad
Précédent
Suivant
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