Results 1 to 6 of 6

Thread: Printing the Ascii code of a string into a text box.

Threaded View

  1. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Printing the Ascii code of a string into a text box.

    Add text1 and txtout and a command button:

    VB Code:
    1. Option Explicit
    2. Dim x As Integer
    3. Dim z As Integer
    4.  
    5. Private Sub Command1_Click()
    6.   x = Len(Text1.Text)
    7.   For z = 1 To x
    8.     txtout.Text = txtout.Text & Asc(Mid(Text1.Text, z, 1)) & " "
    9.   Next z
    10. End Sub
    11.  
    12. Private Sub Form_Load()
    13.   Text1.Text = ""
    14.   txtout.Text = ""
    15. End Sub
    Attached Images Attached Images  

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width