Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : Big Bug in Random Access
Author | Message | ||||
marcwolf Senior Member Joined: 08/06/2009 Location: AustraliaPosts: 119 |
Hi. I was working with some random access files and I think have found a fairly major bug (Sorry Grahame) The PRINT #1 command adds a CRLF at the end of the line. So if we have 3 records all 6 bytes long and we use the SEEK command to move to record 2 and change it's value using the PRINT then we will write 6 + 2 (CRLF) characters into the file and thus kill the first 2 bytes of record 3. If you could change the WRITE command NOT to add the CRLF then we can use that. i.e. original 111111222222333333 Change rec in middle (222222 to 444444) 111111444444xx3333 where xx is CRLF Hope this helps Dave Coding Coding Coding.. Keep those keyboards coding.. RAW CODE!!!!! |
||||
TassyJim Guru Joined: 07/08/2011 Location: AustraliaPosts: 6100 |
A semicolon (;) at the end of the expression list will suppress the automatic output of a carriage return/ newline at the end of a print statement. Jim VK7JH MMedit MMBasic Help |
||||
marcwolf Senior Member Joined: 08/06/2009 Location: AustraliaPosts: 119 |
Phew. Many thanks for that Jim. Dave Coding Coding Coding.. Keep those keyboards coding.. RAW CODE!!!!! |
||||
paceman Guru Joined: 07/10/2011 Location: AustraliaPosts: 1329 |
Yes, and Appendix I (page 60) of the updated Manual for V4.4 gives the rundown. |
||||
Print this page |