-
How would I go about converting an integer (say it has a value of 65) to the corresponding value in a string(yea, I actually want A out of this ;) just one character. Or would this value have to be a byte in order to make the conversion?
regardless, what command do I need to use ;)
-
Int to string
Assuming you want 65 to be converted to an "A":
Chr(65)
Done.
-
Chr$(65) = "A"
...and...
Asc("A") = 65
...if that's what you're looking for.
Paul
-
Chr() returns a Variant and Chr$() returns a string. The difference is that Chr$ is slightly faster.
-
I've read in other threads that adding the "$" as in Chr$ means Chr As String.
I'm a bit of a newbie, so can you answer this for me - does this only work with certain functions, or can this be used for any?
-
<?>
No, not all functions have the ability to return strings.