|
-
Jul 1st, 2006, 03:02 AM
#1
Thread Starter
Frenzied Member
faster way of parsing binary variables?
VB Code:
Dim B() As Byte, sFilePath As String
sFilePath = "SOMEFILE"
Open sFilePath For Binary Access Read As #1
ReDim B(1 To LOF(1))
Get #1, , B
Close #1
For i = 1 To UBound(B)
t1.Text = t1.Text & B(i) & " "
DoEvents
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.
-
Jul 1st, 2006, 03:24 AM
#2
Re: faster way to add text to a textbox?
How is this?
VB Code:
Open sFilePath For Input As #1
t1.Text = Input(LOF(1), 1)
Close #1
-
Jul 1st, 2006, 03:28 AM
#3
Thread Starter
Frenzied Member
Re: faster way to add text to a textbox?
sorry doesn't work for me.... it shows 3 chars for 1,5 mb file.... is the textbox to small?
-
Jul 1st, 2006, 03:29 AM
#4
Re: faster way to add text to a textbox?
Is MultiLine set to True for the TextBox?
-
Jul 1st, 2006, 03:31 AM
#5
Re: faster way to add text to a textbox?
I also assumed it was just Text were loading IAW your Subject. Is that true?
-
Jul 1st, 2006, 03:42 AM
#6
Re: faster way of parsing binary variables?
You;ve changed the Subject. So, what is the goal? - Bianry data?
-
Jul 1st, 2006, 03:51 AM
#7
Thread Starter
Frenzied Member
Re: faster way of parsing binary variables?
Sorry for all confusion, going to try to make it clear now:
Yes, the textbox is set multiline. I guess the textbox is to small to handle 1,5 mb.
Maybe variables would work, but how do I make an array of variables with the array as small as possible (filling variables to the max)
What I'm doing is for a study making a simple compression, by finding the same variables together. The finding together is no problem, but putting it in lines.
Does that make it clear?
Last edited by TheBigB; Jul 2nd, 2006 at 06:20 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|