ArcBasicDocs

ASCII codes

Every character has a number, its character code. Asc gives the code of a character and Chr the character for a code; GetKey and WaitKey give back codes for keys typed.

Keys that aren't characters

GetKey gives back these codes for keys that don't type a character.

CodeKey
1Home
2End
3Page Up
4Page Down
8Backspace
9Tab
13Enter
27Escape
28Up arrow
29Down arrow
30Right arrow
31Left arrow
127Delete

Printable characters

Codes above 127 are letters with accents and other symbols, as in Unicode.

CodeHexCharacter
32$20Space
33$21!
34$22"
35$23#
36$24$
37$25%
38$26&
39$27'
40$28(
41$29)
42$2A*
43$2B+
44$2C,
45$2D-
46$2E.
47$2F/
48$300
49$311
50$322
51$333
52$344
53$355
54$366
55$377
56$388
57$399
58$3A:
59$3B;
60$3C<
61$3D=
62$3E>
63$3F?
64$40@
65$41A
66$42B
67$43C
68$44D
69$45E
70$46F
71$47G
72$48H
73$49I
74$4AJ
75$4BK
76$4CL
77$4DM
78$4EN
79$4FO
80$50P
81$51Q
82$52R
83$53S
84$54T
85$55U
86$56V
87$57W
88$58X
89$59Y
90$5AZ
91$5B[
92$5C\
93$5D]
94$5E^
95$5F_
96$60`
97$61a
98$62b
99$63c
100$64d
101$65e
102$66f
103$67g
104$68h
105$69i
106$6Aj
107$6Bk
108$6Cl
109$6Dm
110$6En
111$6Fo
112$70p
113$71q
114$72r
115$73s
116$74t
117$75u
118$76v
119$77w
120$78x
121$79y
122$7Az
123$7B{
124$7C|
125$7D}
126$7E~
127$7FDelete