Hello,
Apart from using ASCII definitions, is it possible to return a character from a value?
For example: 1 returns "A", 2 returns "B", etc...
Printable View
Hello,
Apart from using ASCII definitions, is it possible to return a character from a value?
For example: 1 returns "A", 2 returns "B", etc...
Without using ASCII, the easiest way is to make a list like
a
b
c
d
e
f
g
h
i
...
all through the alphabet, and then request the line content for the number you're looking for.
Jacob was faster than me. I was going to suggest you can use substrings:
Set alterable string to Mid$("abcdefghijklmnopqrstuvwxyz", Random(26), 1)
Both methods works fine :)
Substrings is very nice! The list aint bad either. Cheers guys.
Ah yes, substrings work great. The list method is only favourable when you have words longer than a single character to use. For example, you could make a list like
Zero
One
Two
Three
Four
Five
Six
Seven
Eight
Nine
And then request the line text at an index to convert 6 to Six or 3 to Three.