disable esc esc on a particular file

Kenneth Brody kenbrody at spamcop.net
Fri Aug 10 11:11:56 PDT 2012


On 8/6/2012 1:46 PM, scooter6 at gmail.com wrote:
> I have one of our larger files where the screen has 'options' i.e.  77 -
> update  88 - goes to different screen 99 - save
>
> Well, in input processing I have 99 - save set to write a note line if
> particular fields were changed once the record was updated, etc.
> So, obviously some have found if they hit 'ESC ESC' to save the record,
> rather than going to the screen options box - these fields are getting
> changed but with no noteline added (of course there is $ involved in
> this...so....need I say more...haha)
>
> How can I force 'ESC ESC' to simply move the cursor to the *aa field (where
> they enter 77, 88 or 99) - which is what I would prefer......or, secondly
> as an alternative, I'd like to disable them being able to 'save' the record
> by hitting ESC ESC but just on this file.

Several solutions come to mind, depending on how you want to handle this.

First, you can force the cursor back into field aa if needed:

   At the top of input processing:

   TheTop:
         If:  condition to force back to aa
       Then:  mesgbox "You need to do this first" ; screen ,aa ; goto TheTop

Alternately, you can turn of ESC-ESC to save:

   @update:
       Then:  save off
       Then:  screen
       Then:  goto Line1  ' where "Line1" is the label on line 1.

If neither of these solutions works for you, you'll need to describe in more 
details what it is you are trying to accomplish.

-- 
Kenneth Brody


More information about the Filepro-list mailing list