Hi Michel,
Sorry for lack of clarity. This is the code:
if wexist("hugform")=.T.
hugform.release()
endif
gives the error
1923 object HUGFORM is not found
wexist("hugform") does evaluate to .T., but the object can't be referenced.
Although wexist() treats a form as being a Window, "deactivate window" doesn't seem to work for closing forms.
Maybe Vladimir's class method is the only way to do this, but I'm not used to OOP, so this is non-intuitive for me!
Cheers
John
Dr. JW Faithfull
Curator in Geology
Hunterian Museum
University of Glasgow
Glasgow G12 8QQ
Scotland