Page 1 of 1

Action when closing a window

Posted: Tue Aug 05, 2008 7:19 am
by Wolfgang Ciriack
Hello,
how can i assign a action to closing a window, someting like ON CLOSE ?
Can i decide with the return value of this action to close the window or to stay in the window ?

Posted: Tue Aug 05, 2008 7:30 am
by Antonio Linares
Wolfang,

Use the VALID clause:

ACTIVATE WINDOW oWnd VALID MsgYesNo( "Want to end ?" )

the expression used with VALID has to return a logical value

Posted: Tue Aug 05, 2008 7:46 am
by Wolfgang Ciriack
Hello Antonio,
thanks, that it so easy that it don't came in my mind :)