Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SAVE and LOAD commands - help!
#4
(03-12-2021, 10:18 PM)RandomiserUsr Wrote: Thanks Boriel,
The issue I found was that the SAVE/LOAD were in a function so I took them out and now it saves and loads :-)

Thank you

Thanks to you.
The problem is related to the Heap, strings and the local variables in the stack. There's no way to recover them correctly. Sinclair BASIC didn't have proper functions and subroutines. In the future, using SAVE / LOAD DATA within functions or sub will be forbidden. The same applies for GOTO, GOSUB (don't use GOSUB within a function or sub; don't GOTO from one scope into a different one).
Reply


Messages In This Thread
SAVE and LOAD commands - help! - by RandomiserUsr - 03-08-2021, 09:04 PM
RE: SAVE and LOAD commands - help! - by boriel - 03-10-2021, 10:15 PM
RE: SAVE and LOAD commands - help! - by boriel - 03-12-2021, 10:48 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)