Variable Set to ASCII Value
The Variable Set to ASCII Value command is essentially the inverse of the Variable Set to ASCII Character. It converts an ASCII character to its ASCII numeric equivalent. For example, the letter "a" converts to a numeric value of 97. The letter "A" converts to a numeric value of 65. The numeric value is saved to an Integer variable that can be used later in the macro.
Script Editor > Expand Variables Category > Variable Set to ASCII Value
ASCII Value to Convert
Enter the ASCII character to be converted to its ASCII numeric equivalent. Or insert the variable that contains the ASCII character to be converted.
Destination Variable
The ASCII character selected is saved as a numeric value and placed in an integer variable. In the example above the ASCII character "A" is saved to the variable selected, which in this case is N[1].
Chart of ASCII Characters 0 - 127
# |
Description |
# |
Char |
# |
Char |
# |
Char |
0 |
Null char |
32 |
Space |
64 |
@ |
96 |
` |
1 |
Start of Heading |
33 |
! |
65 |
A |
97 |
a |
2 |
Start of Text |
34 |
" |
66 |
B |
98 |
b |
3 |
End of Text |
35 |
# |
67 |
C |
99 |
c |
4 |
End of Transmission |
36 |
$ |
68 |
D |
100 |
d |
5 |
Enquiry |
37 |
% |
69 |
E |
101 |
e |
6 |
Acknowledgment |
38 |
& |
70 |
F |
102 |
f |
7 |
Bell |
39 |
' |
71 |
G |
103 |
g |
8 |
Back Space |
40 |
( |
72 |
H |
104 |
h |
9 |
Horizontal Tab |
41 |
) |
73 |
I |
105 |
i |
10 |
Line Feed |
42 |
* |
74 |
J |
106 |
j |
11 |
Vertical Tab |
43 |
+ |
75 |
K |
107 |
k |
12 |
Form Feed |
44 |
, |
76 |
L |
108 |
l |
13 |
Carriage Return |
45 |
- |
77 |
M |
109 |
m |
14 |
Shift Out |
46 |
. |
78 |
N |
110 |
n |
15 |
Shift In |
47 |
/ |
79 |
O |
111 |
o |
16 |
Data Line Escape |
48 |
0 |
80 |
P |
112 |
p |
17 |
Device Control 1 |
49 |
1 |
81 |
Q |
113 |
q |
18 |
Device Control 2 |
50 |
2 |
82 |
R |
114 |
r |
19 |
Device Control 3 |
51 |
3 |
83 |
S |
115 |
s |
20 |
Device Control 4 |
52 |
4 |
84 |
T |
116 |
t |
21 |
Negative Acknowledgement |
53 |
5 |
85 |
U |
117 |
u |
22 |
Synchronous Idle |
54 |
6 |
86 |
V |
118 |
v |
23 |
End of Transmission Block |
55 |
7 |
87 |
W |
119 |
w |
24 |
Cancel |
56 |
8 |
88 |
X |
120 |
x |
25 |
End of Medium |
57 |
9 |
89 |
Y |
121 |
y |
26 |
Substitute |
58 |
: |
90 |
Z |
122 |
z |
27 |
Escape |
59 |
; |
91 |
[ |
123 |
{ |
28 |
File Separator |
60 |
< |
92 |
\ |
124 |
| |
29 |
Group Separator |
61 |
= |
93 |
] |
125 |
} |
30 |
Record Separator |
62 |
> |
94 |
^ |
126 |
~ |
31 |
Unit Separator |
63 |
? |
95 |
_ |
127 |
Delete |