ESC Key

Kenneth Brody kenbrody at spamcop.net
Fri Oct 7 07:08:07 PDT 2011


On 10/6/2011 8:05 PM, Fairlight wrote:
> 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.

SAVE OFF.  (Or the old version, ESCAPE OFF.)

[...]
>> 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.

Are you aware of any way to get to the top of the input table w/o pressing 
the SAVE key?

Note, however, that if processing was running when you entered the screen 
(for example, an @key event), then processing continues after the SCREEN or 
POPUP command, and not at the top of the table.

-- 
Kenneth Brody


More information about the Filepro-list mailing list