Frosty the Coder
Legendary Poster
I'm trying to add a warning w/in the &CANCEL button.
My hope was that the appl would _not_ exit,
the warning would appear, you could &CANCEL
again, and THEN the appl would exit.
I thought that w/in the &CANCEL HYPERITEM,
button clicked ER, the following would work:
If cWarned <> 1
...If cError = 1
......Set Control Err(FC field in error)
......cWarned = 1
......Stop Processing
...Endif
Else
...cWarned = 0
Endif
Debug shows me hitting the Stop Processing, yet
the appl still exits.
Will the above design work as I want? If not,
what code, placed in which ER, will?
This is on XE.
TIA
Gene
Gene Piekarski, Jr
AS/400, B733, SP11.2, NT client
AS/400, B733, SP14, W2000 client
XE, SP13
My hope was that the appl would _not_ exit,
the warning would appear, you could &CANCEL
again, and THEN the appl would exit.
I thought that w/in the &CANCEL HYPERITEM,
button clicked ER, the following would work:
If cWarned <> 1
...If cError = 1
......Set Control Err(FC field in error)
......cWarned = 1
......Stop Processing
...Endif
Else
...cWarned = 0
Endif
Debug shows me hitting the Stop Processing, yet
the appl still exits.
Will the above design work as I want? If not,
what code, placed in which ER, will?
This is on XE.
TIA
Gene
Gene Piekarski, Jr
AS/400, B733, SP11.2, NT client
AS/400, B733, SP14, W2000 client
XE, SP13