Results 1 to 7 of 7

Thread: faster way of parsing binary variables?

Threaded View

  1. #1

    Thread Starter
    Frenzied Member TheBigB's Avatar
    Join Date
    Mar 2006
    Location
    *Stack Trace*
    Posts
    1,511

    faster way of parsing binary variables?

    VB Code:
    1. Dim B() As Byte, sFilePath As String
    2.    
    3.     sFilePath = "SOMEFILE"
    4.     Open sFilePath For Binary Access Read As #1
    5.       ReDim B(1 To LOF(1))
    6.       Get #1, , B
    7.     Close #1
    8.    
    9.     For i = 1 To UBound(B)
    10.         t1.Text = t1.Text & B(i) & " "
    11.         DoEvents
    12.     Next i
    I have pulled this code from here somewhere, but it runs very slow when I put the bytes in the textbox. Is there any way to make this process faster?
    thnx in advance
    Last edited by TheBigB; Jul 1st, 2006 at 03:37 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