Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exists one property or method hidden?
Message
 
 
À
13/07/2003 14:25:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00809679
Message ID:
00809691
Vues:
28
Hi Fabio,

There's no single command that will tell you that but you can use following UDF
*FUNCTION IsPropertyHidden
LPARAMETERS toObject, tcPropertyName 
RETURN PEMSTATUS(toObject, tcPropertyName,5) ;
		AND NOT PEMSTATUS(toObject, tcPropertyName,2) ;
		AND TYPE([GETPEM(toObject, "] + tcPropertyName + [")]) = "U"
>Hi,
>
>I can, with a single command to know if a method or a property exists but it is hidden.
>
>And with multiple command without trap ADDPROPERTY() 1734 error
>( trap errors is very very very ... slow ) ?
>
Hi Fabio,
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform