Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

KeyPut

  • Last UpdatedJul 18, 2023
  • 1 minute read

Puts an ASCII key code or Keyboard key code into the last position of the key command line. If this key completes any command, that command will execute.

Syntax

KeyPut(KeyCode)

KeyCode:

The key code to put into the key command line.

Return Value

0 (zero) if successful, otherwise an error is returned.

KeyGet

Example

KeyPut(Key_F1);
/* Puts "Key_F1" (the Key Code for the "F1" key) into the last
position of the key command line. If "START" is the Key Name for
the "F1" key, this would be equivalent to
KeyPutStr("START"). In either case, "START" will display on the
key command line. */
KeyPut(StrToChar("A"));
/* Puts the Key Code for the "A" key into the last position of the
key command line. */

See Also

Keyboard Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in