PRB: ON KEY LABEL KEYBOARD "{CTRL+C}" Does Not Work in a GET

ID: Q95381

2.00 2.50 2.50a | 2.50 2.50a

MS-DOS          | WINDOWS
kbprg kbprb

The information in this article applies to:

SYMPTOMS

Using a KEYBOARD command as part of an ON KEY LABEL statement to issue an edit shortcut key sequence does not work in a GET field.

CAUSE

Issuing an ON KEY LABEL command in a GET field causes control to exit the GET field. Because of this, the original position of the cursor before the edit function was called is lost. This causes garbage to be returned to the GET field.

RESOLUTION

Enter the desired KEYBOARD edit shortcut key commands as a macro assignment instead of using an ON KEY LABEL command.

MORE INFORMATION

For example, if you issue either of the following statements while in a GET field, the desired editing functions will not be performed:

   ON KEY LABEL F7 KEYBOARD "{CTRL+C}"  && to cut the highlighted text
   ON KEY LABEL F8 KEYBOARD "{CTRL+V}"  && to paste text

Additional reference words: FoxDos FoxWin on key label get keyboard 2.00 2.50 2.50a KBCategory: kbprg kbprb KBSubcategory: FxprgGeneral
Keywords          : FxprgGeneral 
Version           : 2.00 2.50 2.50a | 2.50 2.50a
Platform          : MS-DOS WINDOWS

Last Reviewed: April 30, 1996