Action when closing a window

Post Reply
Wolfgang Ciriack
Posts: 37
Joined: Sun Aug 03, 2008 8:02 am
Location: Germany, Berlin

Action when closing a window

Post 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 ?
Best regards
Wolfgang Ciriack
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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
regards, saludos

Antonio Linares
www.fivetechsoft.com
Wolfgang Ciriack
Posts: 37
Joined: Sun Aug 03, 2008 8:02 am
Location: Germany, Berlin

Post by Wolfgang Ciriack »

Hello Antonio,
thanks, that it so easy that it don't came in my mind :)
Best regards
Wolfgang Ciriack
Post Reply