>Hi everybody,
>
>In button's code I added a call to form's method. In this method I have the following:
>
>on escape ;
> iif(YesNo("Are you sure you want to stop?") ;
> and vartype(m.loProcess) = 'O', m.loProcess.cError = 'User Interrupted the assigning queue process','')
>
>right after instantiating loProcess object. First of all, my select statement in the QueueProcess class (loProcess is the instance of this class) is interrupted regardless of my answer (Yes or No). This I can understand. However, after interrupting the process by ESC the cError is not set (I have cError_Assign method and I put a break point into this method). Why I can not use ON ESCAPE the way I'm trying to use it? What other option I have?
>
>Thanks in advance.
Well, I declared poProcess as private and changed
on escape m.poProcess.cError = iif(YesNo("Are you sure you want to stop?"), ;
"User Interrupted the assigning queue process...","")
and now it works <g>
If it's not broken, fix it until it is.
My Blog