Consultor Eletrônico



Kbase 15176: F4 END-ERROR does not work in an alert-box in V7
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
F4 END-ERROR does not work in an alert-box in V7


The F4 or END-ERROR function key does not work in a character mode
alert-box. The following is an example of this.

If you try to save some code from within the procedure editor, and the
filename you specify already exists, you will be prompted with an
alert-box that lets you know the filename already exists and gives you
the choices of yes or no to replace the file. If you press F4 at this
point, the default action is is to overwrite the file. Even if the
cursor is sitting on "No", the default action is to overwrite.

This is a bug that exists in Version 7 as late as 7.3C. The following
is a workaround that fixes the example above. Reports of this
behavior in other areas of PROGRESS ADE code will need to be addresses
separately.

WORKAROUND:

1. Copy $DLC/src/adecomm/_filecom.p to a local working directory.

2. Edit the local copy of _filecom.p by going to the following code
block:
message File_Name SKIP
"This file already exists." SKIP(1)
"Replace existing file?"
view-as alert-box warning buttons yes-no
update ok_overwrite.
if not ok_overwrite

3. Change the "if not ok_overwrite" code fragment to this:

if ok_overwrite <> true

4. Save your changes to the local _filecom.p.

5. Start a PROGRESS session and run the following code to add the
PROGRESS source code directory to your PROPATH:

ASSIGN PROPATH = PROPATH + "," + OS-GETENV("DLC") + "/src".

Note: You must have the DLC environment variable set for the
assignment to work properly.

6. Run the following COMPILE statement:

COMPILE _filecom.p SAVE

7. Copy the _filecom.r code from your local working directory
to DLC/tty/adecomm. You can also copy the updated source file to
DLC/src/adecomm.


10/12/95

Progress Software Technical Support Note # 15176