Results 1 to 12 of 12

Thread: How to deal with hexadecimal values

Threaded View

  1. #10
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: How to deal with hexadecimal values

    I wasn't discussing the actual processing which I had no idea about. I was pointing out the use of strings and concept of byte manipulation.

    Code:
    Option Explicit
    
    Private Sub Form_Load()
    Dim strArr() As Byte
    Dim i As Long
    
       strArr = "Hello World"
       For i = 0 To UBound(strArr) - 1
          Debug.Print Hex(strArr(i)) & ", " & Chr(strArr(i)) & ", shifted " & IIf(i<250, Chr(i+5), Chr(i-250))
       Next
    End Sub
    Now isn't the array easier to work with than your string?
    Last edited by leinad31; Jun 27th, 2007 at 05:57 AM.

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