problems with on escape
- From: "ghj" <ghj@xxxxxxx>
- Date: Mon, 01 Aug 2005 12:37:51 GMT
I have the commands around a big loop:
ON ESCAPE DO SETCANCEL
SET ESCAPE ON
glcancel = .f.
DO WHILE !glcancel
...
IF glcancel
EXIT
ENDIF
ENDDO
SET ESCAPE OFF
ON ESCAPE
IF glcancel
... say some error message
ENDIF
When I press escape, sometimes it runs SETCANCEL correctly, but sometimes it
gives me the CIS dialog.
What could cause the 'on escape' from not executing.
The code in SETCANCEL.PRG:
IF SYSDIALOG("Cancel. Are You Sure") && MESSAGEBOX()
GLCANCEL = .T.
RETURN
ELSE
glcancel = .f.
RETRY
ENDIF
Thanks
.
- Follow-Ups:
- Re: problems with on escape
- From: Rick Bean
- Re: problems with on escape
- Prev by Date: Re: Open winword.exe on VFP application
- Next by Date: Re: How many form I can put in my main form
- Previous by thread: Open winword.exe on VFP application
- Next by thread: Re: problems with on escape
- Index(es):
Relevant Pages
|