|
-
Aug 14th, 2000, 03:29 PM
#1
Thread Starter
Hyperactive Member
I am trying to add ascii code to a string. For instance: something would be a string. something = something + ascii for 120. How would I do that? If the question is phrased confusingly, please say.
Thanks joe
-
Aug 14th, 2000, 03:32 PM
#2
Code:
Private Sub Command1_Click()
Dim MyStr As String
MyStr = "hello "
MyStr = MyStr & Asc(120)
MsgBox MyStr
End Sub
-
Aug 14th, 2000, 03:40 PM
#3
Thread Starter
Hyperactive Member
thanx a bunch, i thought it was something like that.
Forever in your debt,
joe
well maybe not forever....
-
Aug 14th, 2000, 03:41 PM
#4
Asc() converts a character to the ASCII value. If you want to convert 120 to a character, use the Chr() function.
Code:
MyString = MyString + Chr(120)
-
Aug 14th, 2000, 03:44 PM
#5
Thread Starter
Hyperactive Member
thanx megatron the guru is right as usual. I am afraid asc() does not work. Thanks megatron
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
|