Name
SavePrefs -- save user preferences (V6.1)
Synopsis
SavePrefs(t)
Function
This function saves a table containing user preferences for your application to an external file. You can then load these preferences into your program the next time your program is started by using the LoadPrefs() function. The actual location where the file will be stored is platform-dependent.

Note that this function will only work if you have specified a unique identifier for your application by using the @APPIDENTIFIER preprocessor command. See APPIDENTIFIER for details.

Inputs
t
table containing user preferences to save
Example
@APPIDENTIFIER "com.airsoftsoftwair.example"
prf = {lastfile$ = "test.txt", lastxpos = 100, lastypos = 200}
SavePrefs(prf)
This saves the table prf to a platform-dependent location. At the next program start you can load the preferences by using the LoadPrefs() function. See LoadPrefs for details.

Show TOC