Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 11:35 19 May 2024 Privacy Policy
Jump to

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: Australia
Posts: 119
Posted: 07:31pm 14 Jul 2013
Copy link to clipboard 
Print this post

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: Australia
Posts: 5923
Posted: 07:47pm 14 Jul 2013
Copy link to clipboard 
Print this post

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: Australia
Posts: 119
Posted: 08:06pm 14 Jul 2013
Copy link to clipboard 
Print this post

Phew.
Many thanks for that Jim.

Dave
Coding Coding Coding..
Keep those keyboards coding..
RAW CODE!!!!!
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 08:06pm 14 Jul 2013
Copy link to clipboard 
Print this post

Yes, and Appendix I (page 60) of the updated Manual for V4.4 gives the rundown.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024