Latest News

the latest news from our team

Character Escapes

There are places where characters or character sequences, which need to be replaced, cannot be entered with a keyboard or can’t be acted upon immediately. Escape codes are the means to notify eFORMz of the characters in a way that the information is stored. An example of this is the tab character (ASCII 9). This character will cause the cursor to move to the next field of the screen if entered from the keyboard. In the Composer, the sequence “\t” (without the quotes) can be used to make eFORMz aware of the intention to find or replace the tab character.

 

Preprocessor Data Parsing Control Codes
\b

Backspace

\t

Tab

\n

Linefeed

\r

Carriage return

\f

Formfeed

\\

Backward slash

\a<3 decimal digits>

Character represented by its decimal value (000-255)

\x<2 hexadecimal digits>

Character represented by its hexadecimal value (00 – ff)

 

ASCII Chart

 

The decimal and hexadecimal values are detailed in the ASCII chart. The majority do not need to be encoded using an escape sequence.

 

Char Hex Decimal Keys
NUL 00 000 CONTROL @
SOH 01 001 CONTROL A
STX 02 002 CONTROL B
ETX 03 003 CONTROL C
EOT 04 004 CONTROL D
ENQ 05 005 CONTROL E
ACK 06 006 CONTROL F
BEL 07 007 CONTROL G
BS 08 008 CONTROL H
HT 09 009 CONTROL I
LF 0A 010 CONTROL J
VT 0B 011 CONTROL K
FF 0C 012 CONTROL L
CR 0D 013 CONTROL M
SO 0E 014 CONTROL N
SI 0F 015 CONTROL O
DLE 10 016 CONTROL P
DC1 11 017 CONTROL Q
DC2 12 018 CONTROL R
DC3 13 019 CONTROL S
DC4 14 020 CONTROL T
NAK 15 021 CONTROL U
SYN 16 022 CONTROL V
ETB 17 023 CONTROL W
CAN 18 024 CONTROL X
EM 19 025 CONTROL Y
SUB 1A 026 CONTROL Z
ESC 1B 027 CONTROL [
FS 1C 028 CONTROL \
GS 1D 029 CONTROL ]
RS 1E 030 CONTROL ^
US 1F 031 CONTROL _
space 20 032 Space

Leave a Reply

Your email address will not be published. Required fields are marked *