Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question on releasing object and setting to .NULL.
Message
From
14/05/2009 19:10:03
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01399978
Message ID:
01400004
Views:
46
David,
I created a slightly different version of your UDF, since I don't want the call to the UDF to error if the property/variable doesn't exist. Here's what I have now, FYI. Thanks again!
* IsObj.prg
* Test if passed property/variable name is an object.

LPARAMETERS m.tcObj

RETURN TYPE(m.tcObj) = "O" AND NOT ISNULL(EVALUATE(m.tcObj))
-Mark

>Mark,
>
>I use a UDF IsObject() to perform the test:
>
>
>lparameter roObject
>
>return( ( type( "m.roObject" ) == 'O' ) and ( ! isnull( m.roObject ) ) )
>
Previous
Reply
Map
View

Click here to load this message in the networking platform