I use a table that I call "_system", which is stored in the front end. Its like a hash table, or the Windows Registry. Fields are:
sysGroup optional, helps group similar items.
sysItem A name to look up, eg "MySavedVariable"
sysValue The value of the item, eg "MyVariableValue"
Now you can save the value of your variable in the table, and retrieve as required.
An alternative is to save it to the Registry itself, see GetSetting and SaveSetting methods in Help.
Max Hugen
Australia