Prompt Validation problems (AREV Specific)
At 16 JUN 2000 10:58:42AM Matt Sorrell wrote:
I'm having problems remembering how to do something, or maybe it just can't be done.
I have a prompt that calls my subroutine for validation. In the sub, I do the various validations and if an illegal value has been entered, I display a message. BTW, this is only when the user is changing the value. After I display the message, I set @ANS=WC_IS_ORIG%, set STATUS()=3 and have played with various combinations of WC_RESET% and WC_DISPLAY_ACTION%. My goal is to disallow the change and restore the value to WC_IS_ORIG%.
The change is being disallowed, and the cursor is staying in the prompt, but the original value is not being restored.
Can this be done, or am I living a pipe dream here?
msorrel@greyhound.com
At 16 JUN 2000 11:54AM Don Miller - C3 Inc. wrote:
Matt
I think you should set WC_IS% to WC_IS_ORIG%. DISPLAY.ACTION should be 5 (I think ..). @ANS isn't available to the prompt right after validation.
HTH
Don Miller
C3 Inc.
At 16 JUN 2000 02:24PM Matt Sorrell wrote:
Thanks for the help.
I changed it to set WC_IS% and also filled @Data with the F4 keystroke.
This appears to be working.
msorrel@greyhound.com