>if type('myobject') == "O" AND !isnull(myobject)
>myobject.destroy()
>endi
Eric,
Calling the destroy method does not do anything but run the code. You can also reduce the IF statement for all but SCATTER NAME objects by doing;
IF TYPE("MyObject.Name") = "C"