ESC Key
Fairlight
fairlite at fairlite.com
Thu Oct 6 17:05:39 PDT 2011
You'll never BELIEVE what Scott said here...:
> Hi all
>
> Having issues with users (after being told not to) pressing ESC while in a
> add record, there for saving the record before the completion of the fields
> and the rest of the required code. (Uniquie number is assigned at the end
> menu of processing and then record is saved).
>
> Is there a off function ? ( like the BREAK OFF for Ctrl-C)
Not that I know of.
> Where does the processing go after a ESC press?
Top of the input processing table. You put your post-ESC,ESC processing
there, and finalise with an END. Any @whatever or other processing goes
after that first END. Input processing should really always start with an
END before all that stuff anyway, even if there's nothing being done...just
a leading END, because that's exactly where processing starts at the save
point.
> Can anyone tell me how to stop the user pressing the ESC key, or do I just
> have to catch it somewhere?
Test @SK for "[SAVE]" at the top of input processing, and if that's it,
then check to see if your minimal criterion are met. If not, screen() into
the appropriate screen & field depending on circumstances.
mark->
--
Audio panton, cogito singularis.
More information about the Filepro-list
mailing list