don't close window with Escape

Post Reply
User avatar
plantenkennis
Posts: 166
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

don't close window with Escape

Post by plantenkennis »

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: Select all | Expand


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
User avatar
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: don't close window with Escape

Post by cnavarro »

Hello, try with

Code: Select all | Expand


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
User avatar
plantenkennis
Posts: 166
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

Re: don't close window with Escape

Post by plantenkennis »

Hello,

Thank you very much, that was the trick :D
Kind regards,

René Koot
Post Reply