>I am working on an application that uses a top level form a the main form. I thought I could issue an on shutdown to control how the application closes. However the command doesnt seem to work. Is there anyway I control how the application closes when a user clicks on the close box in a top level form.
>
>Many thanks in advance for any help on this topic
Put in QueryUnload Event of the form:
LOCAL cOnShut
cOnShut = ON("SHUTDOWN")
IF .NOT. &cOnShut
NODEFAULT
RETURN .f.
ENDIF
(not tested)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.