Mark if you are using vartype you don't need the isnull since cartype will return X for null variables.
>>Hi everybody.
>>I have an object form1 , different functions calling that object,which i use to display the messages , they change constantly, i display the tables that in use etc.., cause some operations take several minutes. So the problem is that when the the object is called more than once , from different functions, and than you release the object , the other it's still displayed and when release command is called second time it gives an error that "object form1 is not found". What should i do,
>>Thank U.
>
if vartype(myobject) = 'O' and not isnull(myobject)
> if pemstatus(myobject, 'release', 5)
> myobject.release()
> else
> myobject = .null.
> endif
>endif
Alexandre Palma
Senior Application Architect