ASCII Constants
As of release 12.0, VTScada has full support for Unicode (UTF-8). ASCII constants remain supported for legacy purposes.
The following constants are defined at the \System layer. In code that parses user-input strings, you should use these constants rather than creating your own buffers for common key values or key combinations.
Name of Constant | Contents | Description |
---|---|---|
CR | MakeBuff(1, 13) | Carriage return |
ESC | MakeBuff(1, 27) | Escape key |
LF | MakeBuff(1, 10) | Line feed |
NULL | MakeBuff(1, 0) | Null byte |
TAB | MakeBuff(1, 9) | Tab key |
CRLF | Concat(MakeBuff(1, 13), MakeBuff(1, 10)) | CR/LF pair |
UpArrow | Concat(MakeBuff(1, 253), MakeBuff(1, 0x48)) | Up arrow key |
DownArrow | Concat(MakeBuff(1, 253), MakeBuff(1, 0x50)) | Down arrow key |
LeftArrow | Concat(MakeBuff(1, 253), MakeBuff(1, 0x4B)) | Left arrow key |
RightArrow | Concat(MakeBuff(1, 253), MakeBuff(1, 0x4D)) | Right arrow key |
AltLeftArrow | Concat(MakeBuff(1, 253), MakeBuff(1, 0x9B)) | Alt and left arrow |
AltRightArrow | Concat(MakeBuff(1, 253), MakeBuff(1, 0x9D)) | Alt and right arrow |
SUpArrow | Concat(MakeBuff(1, 253), MakeBuff(1, 0xB8)) | Shift and up arrow |
SDownArrow | Concat(MakeBuff(1, 253), MakeBuff(1, 0xC0)) | Shift and down arrow |
PageUp | Concat(MakeBuff(1, 253), MakeBuff(1, 0x49)) | Page up key |
PageDown | Concat(MakeBuff(1, 253), MakeBuff(1, 0x51)) | Page down key |
HomeKey | Concat(MakeBuff(1, 253), MakeBuff(1, 0x47)) | Home key |
EndKey | Concat(MakeBuff(1, 253), MakeBuff(1, 0x4F)) | End key |
DeleteKey | Concat(MakeBuff(1, 253), MakeBuff(1, 0x53)) | Delete key |
SPageUp | Concat(MakeBuff(1, 253), MakeBuff(1, 0xB9)) | Shift and page up |
SPageDown | Concat(MakeBuff(1, 253), MakeBuff(1, 0xC1)) | Shift and page down |
SHomeKey | Concat(MakeBuff(1, 253), MakeBuff(1, 0xB7)) | Shift and home |
SEndKey | Concat(MakeBuff(1, 253), MakeBuff(1, 0xBF)) | Shift and end |
CtrlPageUp | Concat(MakeBuff(1, 253), MakeBuff(1, 0x84)) | Ctrl and page up |
CtrlPageDown | Concat(MakeBuff(1, 253), MakeBuff(1, 0x76)) | Ctrl and page down |
CtrlHome | Concat(MakeBuff(1, 253), MakeBuff(1, 0x77)) | Ctrl and home |
CtrlEnd | Concat(MakeBuff(1, 253), MakeBuff(1, 0x75)) | Ctrl and end |
CtrlBKey | MakeBuff(1, 2) | Ctrl and B |
CtrlCKey | MakeBuff(1, 3) | Ctrl and C |
CtrlDKey | MakeBuff(1, 4) | Ctrl and D |
CtrlIKey | Concat(MakeBuff(1, 253), MakeBuff(1, 0xB5)) | Ctrl and I |
CtrlLKey | MakeBuff(1, 12) | Ctrl and L |
CtrlNKey | MakeBuff(1, 14) | Ctrl and N |
CtrlOKey | MakeBuff(1, 15) | Ctrl and O |
CtrlUKey | MakeBuff(1, 21) | Ctrl and U |
CtrlVKey | MakeBuff(1, 22) | Ctrl and V |
CtrlXKey | MakeBuff(1, 24) | Ctrl and X |
CtrlYKey | MakeBuff(1, 25) | Ctrl and Y |
CtrlZKey | MakeBuff(1, 26) | Ctrl and Z |