don't close window with Escape

don't close window with Escape

Postby plantenkennis » Fri Nov 26, 2021 2: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: Select all  Expand view  RUN

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

Re: don't close window with Escape

Postby cnavarro » Fri Nov 26, 2021 2:31 pm

Hello, try with
Code: Select all  Expand view  RUN

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
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: don't close window with Escape

Postby plantenkennis » Sun Nov 28, 2021 11:05 am

Hello,

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

René Koot
User avatar
plantenkennis
 
Posts: 166
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands


Return to FiveMac / FivePhone (iPhone, iPad)

Who is online

Users browsing this forum: No registered users and 10 guests