Save & Load

From SoftMC-Wiki
Revision as of 10:10, 21 March 2023 by EranKo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language: English
 
The following example demonstrates how to save & load global variable (integer counter).

   

 
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