Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:02 01 Aug 2025 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 : CMM2: Data Restore - Calculated

Author Message
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1132
Posted: 06:47pm 25 Jun 2020
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 10310
Posted: 06:52pm 25 Jun 2020
Copy link to clipboard 
Print this post

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: Canada
Posts: 1132
Posted: 07:38pm 25 Jun 2020
Copy link to clipboard 
Print this post

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.
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025