Saturday, June 30, 2012

Do_key

DO_KEY Built-in

Description

Executes the key trigger that corresponds to the specified built-in subprogram. If no such key trigger exists, then the specified subprogram executes. This behavior is analogous to pressing the corresponding function key.

Syntax

PROCEDURE DO_KEY
(built_in_subprogram_name VARCHAR2);
Built-in Type restricted procedure
Enter Query Mode yes

Parameters

built_in_subprogram_name 
 
Specifies the name of a valid built-in subprogram.
Built-in
Key Trigger
Associated Function Key
CLEAR_BLOCK
Key-CLRBLK
[Clear Block]
CLEAR_FORM
Key-CLRFRM
[Clear Form]
CLEAR_RECORD
Key-CLRREC
[Clear Record]
COMMIT_FORM
Key-COMMIT
[Commit]
COUNT_QUERY
Key-CQUERY
[Count Query Hits]
CREATE_RECORD
Key-CREREC
[Insert Record]
DELETE_RECORD
Key-DELREC
[Delete Record]
DOWN
Key-DOWN
[Down]
DUPLICATE_ITEM
Key-DUP-ITEM
[Duplicate Item]
DUPLICATE_RECORD
Key-DUPREC
[Duplicate Record]
EDIT_TEXTITEM
Key-EDIT
[Edit]
ENTER
Key-ENTER
[Enter]
ENTER_QUERY
Key-ENTQRY
[Enter Query]
EXECUTE_QUERY
Key-EXEQRY
[Execute Query]
EXIT_FORM
Key-EXIT
[Exit/Cancel]
HELP
Key-HELP
[Help]
LIST_VALUES
Key-LISTVAL
[List]
LOCK_RECORD
Key-UPDREC
[Lock Record]
NEXT_BLOCK
Key-NXTBLK
[Next Block]
NEXT_ITEM
Key-NEXT-ITEM
[Next Item]
NEXT_KEY
Key-NXTKEY
[Next Primary Key Fld]
NEXT_RECORD
Key-NXTREC
[Next Record]
NEXT_SET
Key-NXTSET
[Next Set of Records]
PREVIOUS_BLOCK
Key-PRVBLK
[Previous Block]
PREVIOUS_ITEM
Key-PREV-ITEM
[Previous Item]
PREVIOUS_RECORD
Key-PRVREC
[Previous Record]
PRINT
Key-PRINT
[Print]
SCROLL_DOWN
Key-SCRDOWN
[Scroll Down]
SCROLL_UP
Key-SCRUP
[Scroll Up]
UP
Key-UP
[Up]

DO_KEY Restrictions

  • DO_KEY accepts built-in names only, not key names: DO_KEY(ENTER_QUERY).

    To accept a specific key name, use the EXECUTE_TRIGGER built-in: EXECUTE_TRIGGER('KEY_F11').

DO_KEY Example

/*
   
** Built-in: DO_KEY 
** Example: Simulate pressing the [Execute Query] key. 
*/ 
BEGIN 
   DO_KEY('Execute_Query'); 
END; 

No comments:

Post a Comment