FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Action when closing a window
Posts: 37
Joined: Sun Aug 03, 2008 08:02 AM
Action when closing a window
Posted: Tue Aug 05, 2008 07:19 AM

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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Action when closing a window
Posted: Tue Aug 05, 2008 07:30 AM

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
Posts: 37
Joined: Sun Aug 03, 2008 08:02 AM
Action when closing a window
Posted: Tue Aug 05, 2008 07:46 AM

Hello Antonio,
thanks, that it so easy that it don't came in my mind :)

Best regards

Wolfgang Ciriack

Continue the discussion