# Re: Textbox

Posted by 小琳 on August 26, 1999 at 22:11:02:

In Reply to: Textbox posted by Steven Sin on August 26, 1999 at 20:28:31:

: 怎样把里面的字串用 Asc 分做 integer e.g.(ab---->97 98)?

:::在Form里面放一个Text及一个按钮，程式如下：
Private Sub Command1_Click()
Dim result As String
Dim i As Integer
result = ""
For i = 1 To Len(Trim(Text1.Text))
result = result & Asc(Mid(Text1.Text, i, 1)) & " "
Next i
MsgBox result
End Sub

Follow Ups: