FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveMac / FivePhone (iPhone, iPad) don't close window with Escape
Posts: 166
Joined: Wed Nov 25, 2015 07:13 PM
don't close window with Escape
Posted: Fri Nov 26, 2021 02:08 PM
Hello,
It has been a long time since I had the oppurtunity to work on my program, due to personal problems.
I have some questions:
When in the Window definition I don't use the VALID option, the user can close the Window with the Escape key. I have set a VALID in this way:
Code (fw): Select all Collapse
VALID ( IF(MsgYesNo('Want to end?'), (RK_SaveVariables(), RK_CloseTables()), )

But if the user clicks 'No' the program still stops. How can I make it that the program respons to the 'No' choise?
Kind regards,



René Koot
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: don't close window with Escape
Posted: Fri Nov 26, 2021 02:31 PM
Hello, try with
Code (fw): Select all Collapse
VALID ( IF(MsgYesNo('Want to end?'), (RK_SaveVariables(), RK_CloseTables(), .T. ), .F. ) )
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 166
Joined: Wed Nov 25, 2015 07:13 PM
Re: don't close window with Escape
Posted: Sun Nov 28, 2021 11:05 AM

Hello,

Thank you very much, that was the trick :D

Kind regards,



René Koot

Continue the discussion