Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vartype() type works different for hyperlink?
Message
 
 
À
07/07/2003 17:22:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00807623
Message ID:
00807686
Vues:
24
>>>I think I understand that, but why does one Vartype() return 'U' while another gets Error?
>>>
>>>I have been using Vartype( oObject.cProperty ) whenever I knew that oObject existed, rather than Pemstatus(), and it works the way I think it should.
>>
>>You used it icorrectly. You shoud use TYPE() instead.
>
>Are you saying I should never use Vartype() if there is a possibility that it will return 'U'?
>If that's not what you're saying can you give me an example where it's used properly and returns 'U'?

Yes, you should avoid using VARTYPE() if variable/property may not exists.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform