Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 04:09 17 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 : DATA

Author Message
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1805
Posted: 03:48pm 27 Jan 2017
Copy link to clipboard 
Print this post

I am writing some code and would find it very useful if I could access two different lots of data. At the moment I have to read through 400 odd entries as junk before I get to the second lot of data. Then RESTORE to go back.
Maybe DATA1 and READ1. DATA2 and READ2 etc.
OR is there already an easy way to do this.
Paul.


"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
paceman
Guru

Joined: 07/10/2011
Location: Australia
Posts: 1329
Posted: 04:23pm 27 Jan 2017
Copy link to clipboard 
Print this post

Paul, if you're using a Micromite+ then the easy way might be to read and write to the SD card, depending how fast and often you need to do it. That way you can use the random SEEK command to take you direct to the data you want and you also can have five files open at once. Its in the Micromite Plus Manual.

Greg

 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 5923
Posted: 04:44pm 27 Jan 2017
Copy link to clipboard 
Print this post

RESTORE lets you RESTORE to a specific line number (or label)
That will get you to a known place in each group of data.

VK7JH
MMedit   MMBasic Help
 
palcal

Guru

Joined: 12/10/2011
Location: Australia
Posts: 1805
Posted: 05:41pm 27 Jan 2017
Copy link to clipboard 
Print this post

Thanks Greg and Jim.
Paul
"It is better to be ignorant and ask a stupid question than to be plain Stupid and not ask at all"
 
Print this page


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

© JAQ Software 2024