Results 1 to 5 of 5

Thread: hex to ascii or ansi(Resolved)

Threaded View

  1. #1

    Thread Starter
    Lively Member dedub's Avatar
    Join Date
    Dec 2002
    Location
    NC
    Posts
    98

    hex to ascii or ansi(Resolved)

    I have browsed for an hour on this and have not found much. All the code snippets would work but right not Im not interested on calling a function. What I would like to do is simply type a two digit hex into a text box and get the ascii or ansi equivelent. Here is what I have so far. Oh, it does work until you introduce a letter from the alphabet, then it crashes.
    VB Code:
    1. Private Sub Command2_Click()
    2. Dim num As Long
    3. num = Text1.Text
    4. Text2.Text = Chr(Val(num))
    5. End Sub
    Any help would be great
    Last edited by dedub; Jun 3rd, 2005 at 10:25 PM. Reason: Resolved
    R.L.T.W. A+, NET+, CCNA

    Doin' my best

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