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:
01247742
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.

Try this and you will see the difference:
oObject = CREATEOBJECT([Form])
? TYPE([oObject])          && -> [O]
? TYPE([oObject.Name])     && -> [C]

oObject = NULL
? TYPE([oObject])          && -> [O]
? TYPE([oObject.Name])     && -> [U]
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform