Strings, Hexadecimal, and ASCII Values

Just a short tip with examples on converting a string to its ASCII values, or ASCII integer values back into a String

q: "This is a test"
A: This is a test
T: 1.878 ms
I: singular string

q: characters of "This is a test"
A: T
A: h
A: i
A: s
A:  
A: i
A: s
A:  
A: a
A:  
A: t
A: e
A: s
A: t
T: 1.863 ms
I: plural substring

q: (it as hexadecimal) of characters of "This is a test"
A: 54
A: 68
A: 69
A: 73
A: 20
A: 69
A: 73
A: 20
A: 61
A: 20
A: 74
A: 65
A: 73
A: 74
T: 1.699 ms
I: plural string


q: (hexadecimal integer (it as hexadecimal) )of characters of "This is a test"
A: 84
A: 104
A: 105
A: 115
A: 32
A: 105
A: 115
A: 32
A: 97
A: 32
A: 116
A: 101
A: 115
A: 116
T: 1.402 ms
I: plural integer

q: character 84
A: T
T: 0.997 ms
I: singular string

q: (character (it) ) of (hexadecimal integer (it as hexadecimal) )of characters of "This is a test"
A: T
A: h
A: i
A: s
A:  
A: i
A: s
A:  
A: a
A:  
A: t
A: e
A: s
A: t
T: 0.976 ms
I: plural string

q: concatenation of (character (it) ) of (hexadecimal integer (it as hexadecimal) )of characters of "This is a test"
A: This is a test
T: 0.543 ms
I: singular string
4 Likes