I have never worked with indexing in Basic except for relative files where I could update fixed byte length records within a file but data statements restore commands in most basics I have used have a way to provide a restore point that is either a label or a line number. I have always read the precise data into an array or indexed from the labeled point using a for loop when needed since data statements are usually fairly short structures. To allow easy porting the label idea matches existing programs the best. Perhaps others can chime in on the value of indexes as a substitute for an array of data.
Dale
2.3 version
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 2.3 version
RESTORE TO label command will be implemented in v2.4