Even though I had X-Clicked and closed a form (maybe I did not explicictly do a release -), TYPE and VARTYPE both indicated the closed form was still an Object.Actually, I would expect TYPE() to return 'O' after the form is released < s >. With TYPE() you have to do some additional checking to make sure that the object reference is not null:
TYPE( 'MyForm' ) = 'O' AND NOT ISNULL( MyForm )
But I would expect VARTYPE() to return 'X' for a form that has been released. Odd...
I just did a quick test in the command window with these results:
DO form itineraries
Close the itineraries form by clicking on the close button
?TYPE( 'itineraries') --> returns O
?VARTYPE( itineraries ) --> returns X
Don't know what is different about your environment...