|
-
Nov 16th, 2000, 04:54 PM
#1
Thread Starter
Junior Member
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 
Mark Wight
x86 ASM, AS11 ASM, C, C++, Java.
-
Nov 16th, 2000, 04:59 PM
#2
Member
Int to string
Assuming you want 65 to be converted to an "A":
Chr(65)
Done.
Boring signature included.
VB6 SP3.
-
Nov 16th, 2000, 04:59 PM
#3
Chr$(65) = "A"
...and...
Asc("A") = 65
...if that's what you're looking for.
Paul
-
Nov 16th, 2000, 05:25 PM
#4
Chr() returns a Variant and Chr$() returns a string. The difference is that Chr$ is slightly faster.
-
Nov 16th, 2000, 05:40 PM
#5
Member
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?
Boring signature included.
VB6 SP3.
-
Nov 16th, 2000, 05:46 PM
#6
_______
<?>
No, not all functions have the ability to return strings.
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|