Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by thepunisher

  1. thepunisher

    Binary files,

    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...
  2. thepunisher

    Binary files,

    I know it means while it is not the End Of File loop, but why is the (1) there? "Cellar Door" - the most beautiful word in the english dictionary
  3. thepunisher

    Binary files,

    What does the "While Not EOF(1)" mean exactly? "Cellar Door" - the most beautiful word in the english dictionary
  4. thepunisher

    Binary files,

    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...
  5. thepunisher

    Binary files,

    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"...
  6. thepunisher

    Binary files,

    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...
  7. thepunisher

    Binary files,

    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!!!
  8. thepunisher

    Binary files,

    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...
  9. thepunisher

    Close a workbook and then MS Excel?

    Works like a charm. Do you guys know anything about binary files? Homer Simpson: Im not a religious man, but Superman, if you're up there, save me!!!
  10. thepunisher

    Close a workbook and then MS Excel?

    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...
  11. thepunisher

    Networks career?

    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!!!
  12. thepunisher

    read binary file, copy data to newly created binary file?

    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!!!
  13. thepunisher

    Networks career?

    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...
  14. thepunisher

    read binary file, copy data to newly created binary file?

    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!
  15. thepunisher

    read binary file, copy data to newly created binary file?

    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.

Part and Inventory Search

Back
Top