Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check if a property is on a object
Message
 
 
À
01/08/2008 02:42:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01335595
Message ID:
01336154
Vues:
15
>>It's a wrong approach. See my original reply for correct answer.
>>
>>You can use TYPE("myObject.myObject") = 'O' and !insull(myObjec.myObject)
>>
>>If you don't have your property defined VARTYPE will give you an error. That's why PEMSTATUS() function was introduced.
>>
>
>Vartype won't give an error if the property is not defined.
>It will only give an error if the property is defined and either hidden or protected

Hi Gregory,

In my tests I didn't get errors with vartype even with HIDDEN and PROTECTED properties. I'll publish my test program on Monday. So, I was wrong and Sergey was correct with his suggestion.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform