I see that in many examples and usage that objects are set to Null when we are done with them. But when I tested the TYPE() it was still "O" for Object. So why would we set the object to Null and not RELEASE the object instead? At least then I would have an easy way to check if it existed or not. Or is there some better way to detemine an object set to Null isn't really functional any more?
I just need to test whether it is really capable of being used. If I just set to Null then I can't use TYPE(). Or do you recommend testing for something within the object? I really want a generic way to make this test.
I just need to test whether it is really capable of being used. If I just set to Null then I can't use TYPE(). Or do you recommend testing for something within the object? I really want a generic way to make this test.
Code:
objMail = CREATEOBJECT("CDO.Message")
? TYPE("objMail")
O
objMail = Null
? TYPE("objMail")
O
RELEASE objMail
? TYPE("objMail")
U