Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Diff. between TYPE() of object and object.name
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01247740
Message ID:
01247749
Vues:
20
>Hi all
>
>I have been bitten by the following usage:
>
IF TYPE("oObject") == "O"
>
>so I had to switch to:
>
IF TYPE("oObject.NAME") == "C"
>
>What is different that gets me bitten while coding?
>
>Please advise.

Type() may return 'O' when the Object has ceased to exist (see other replies)

Best
if ( vartype(m.oObject) == T_OBJECT)
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform