Microsoft KB Archive/95381

{| = PRB: ON KEY LABEL KEYBOARD &quot;{CTRL+C}&quot; Does Not Work in a GET =
 * width="100%"|

ID: Q95381

2.00 2.50 2.50a | 2.50 2.50a

MS-DOS         | WINDOWS kbprg kbprb The information in this article applies to:


 * Microsoft FoxPro for MS-DOS, versions 2.0, 2.5, and 2.5a
 * Microsoft FoxPro for Windows, versions 2.5 and 2.5a

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 &quot;{CTRL+C}&quot; && to cut the highlighted text ON KEY LABEL F8 KEYBOARD &quot;{CTRL+V}&quot; && 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
 * }