![]() |
Forum Index : Microcontroller and PC projects : CMM2: Data Restore - Calculated
Author | Message | ||||
vegipete![]() Guru ![]() Joined: 29/01/2013 Location: CanadaPosts: 1132 |
The 'RESTORE line' command only seems to allow literal restore points. Could it be modified to allow calculated restore points? L$ = "dataline" + str$(restorenum) restore L$ dataline1: data 1,2,3 dataline2: data 2,4,6 dataline3: data 1,3,5 {plus many, many more similar data lines} dataline399: data 5,3,7 Visit Vegipete's *Mite Library for cool programs. |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
This is standard for all MM and CMM so unless it is something that Geoff wants to include in the language then the answer is no. You have more than enough memory on the CMM2 that you should never need to use restore. Just read to a master copy and then copy from that as you wish |
||||
vegipete![]() Guru ![]() Joined: 29/01/2013 Location: CanadaPosts: 1132 |
A monster SELECT CASE structure works for now, but it is a pain to extend. I'll try a big 2D array of strings instead... Visit Vegipete's *Mite Library for cool programs. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |