Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Diff. between TYPE() of object and object.name
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01247740
Message ID:
01247742
Views:
19
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform