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

AVEVA™ Plant SCADA

KeyPeek

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets the ascii key code from the key command line (at a specified offset), without removing the key from the key command line. An offset of 0 returns the key code from the last position in the key command line.

Syntax

KeyPeek(Offset)

Offset:

The offset from the end of the key command line

Return Value

The ASCII key code.

KeyGet

Example

! If "A B C" is in the key command line:
Variable=KeyPeek(0);
! Sets Variable to 67 (ASCII "C")
Variable=KeyPeek(2);
! Sets Variable to 65 (ASCII "A")

See Also

Keyboard Functions

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