Difference between revisions of "Save & Load"

From SoftMC-Wiki
Jump to: navigation, search
(created)
(No difference)

Revision as of 09:51, 21 March 2023

Language: English
 
The following example demonstrates how to save & load global variables.

   

 
common shared my_counter as long
program
try 
    load my_counter.prg
    catch else
end try
my_counter = my_counter + 1
SAVE file="my_counter.prg" type = long VARIABLENAME="my_counter" MODE= NEW