But with regards to the code you guys gave me, this is what i have done so far:
Dim FileBytes(10000) As Byte 'An array of bytes.
-----------------------------------------------------------
Sub test()
Dim nLength As Long
Dim i As Long
Dim s As String
'Length of the file in bytes...
This is the code i had been trying.
I also was trying to read in a text file and create another binary output file and text file.
As you can see by the code i had been using, i was a million miles away.
-----------------------------------------------------
Dim x As Integer
Dim y As Integer...
I have increased the size of the array, but thats not the problem.
It comes up with the same error as above, at the line:
FileBytes(nRecNum) = AByte
At run-time, when i step through the code nRecNum has a value of 1001 while AByte is 32, whats the problem?
Please help
"Cellar Door"...
I have tried the code above,
but it keeps coming up with a 'Run-Time Error:9 'Subscript out of range' error message,
Whats the story?
Does this mean that the array:
Dim FileBytes(1000) As Byte
Has to be bigger?
"Cellar Door" - the most beautiful word in the english...
Legend, i'll try it and let you know in the morning how i get on thanks,
Have a star!!
Homer Simpson: Im not a religious man, but Superman, if you're up there, save me!!!
Hi,
I want to read a binary file and store each byte/character into an array.
Then i want to check what each of the bytes are, whether they are a 1, a 2 etc.. based on this, i will do some other computations.
The main thing i want to do is read/open a binary file, and put each byte into an...
Hi,
I am using the following code to save and then close a currently open workbook.
ActiveWorkbook.Save 'Save workbook.
ActiveWorkbook.Close 'Close workbook.
I also want to end the actual MS Excel Application, after the save and close have been done.
how do i do this?
thePunisher
Homer...
Win32,
Configurable apps eh! yeah i'll check them out. Try and read some books on the qt.
Thanks,
thePunisher
Homer Simpson: Im not a religious man, but Superman, if you're up there, save me!!!
ok,
cool, just one more question,
how do i check/view the values of the data in the binary file? I dont think there is a way, or is there?
thanks,
thePunisher
Homer Simpson: Im not a religious man, but Superman, if you're up there, save me!!!
Hi,
I want to start a career working with 'Networks' and/or 'Data Communications' as they were my favorite/best subjects in college.
I have just graduated with a Bsc. in Computing Science and am wondering what are the best next steps to take for a career in this field. I have no experience...
Yeah,
i'll try that,
and then i set that to a variable and it will go into an array....no probs, but how to i create a new binary file with the new data?
Have a star!!!
Frank: I can do anything i want, and so can you!
How do i read in a binary file, copy the data to an array and then send the array data to a new binary file?
I want to create the binary file at run-time if possible.
Any help is greatly appreciated? Especially code.
thanks,
thePunisher.
The Wolf: Thats 30 minutes away. I'll be there in 10.
Hi,
I want to read in two binary files, then save the contents to two arrays, how do i do this?
I am converting fortran code to vb6, so i am not really sure what im doing, so any VB code that saves binary file data to arrays is welcome.
Thanks,
thePunisher
PS- Below is my code so far...
Hi,
Could you tell me what this code below does, and what the variables mean?
I know its opening a file, but i dont know what the UNIT and ORGANIZATION for example mean, i have never coded fortran before.
I am converting this code to VB, so i have to be able to understand it.
OPEN (UNIT=5...
Hi,
Ive just started coding Java again after 2 years. I have little experience in Java and OOD, i only did a bit in college and didnt like it then, but i want to add it to my armoury now.
Are there any good online java books, that deal more with the OOD side of things rather than coding?
I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.