>Michel,
>
>The m.euroansi is a public variable, so you don't have to restore it before every select.
It's private:
Clear all
x="whatever"
Save to temp
Clear all
Public x
DO RestoreProc
Procedure RestoreProc
Restore From temp
clear
Display Memory like x
I've tried several other ways (without declaring a public, with declaring public before save), but whatever I did outside of the procedure, it was always private to the procedure where the Restore command was issued. This has been so since FoxPlus.
Now when I declared x in the procedure, it became:
- public after the restore(!) if declared local
- private with outer x hidden if declared private
- private with outer x not shown if declared public
Anyway, these issues with the scope of the restored variables (they all become private to the procedure, regardless of their scope when saved) have always made the save/restore process as something of limited usability.