Consultor Eletrônico



Kbase 12501: Making DELETE work in Editor when trigger active for DELETE
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
Making DELETE work in Editor when trigger active for DELETE

When a trigger is written for the DELETE key, the Editor does not
receive the keystroke. To get around this, use the following code:

ON DELETE ANYWHERE DO:
MESSAGE "Delete" VIEW-AS ALERT-BOX.
IF SELF:TYPE = "EDITOR" THEN DO:
DEF VAR FOO AS LOGICAL.
FOO = SELF:DELETE-CHAR().
END.
END.

The trick here is that the Editor's DELETE-CHAR() method is used to
emulate the DELETE key.

Progress Software Technical Support Note # 12501