Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Diff. between TYPE() of object and object.name
Message
From
13/08/2007 04:18:25
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01247740
Message ID:
01247749
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.

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

Best
if ( vartype(m.oObject) == T_OBJECT)
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform