Name
LoadPrefs -- load user preferences (V6.1)
Synopsis
LoadPrefs(t)
Function
This functions loads user preferences that have been stored using the SavePrefs() command into a table. The table you pass to this function should be initialized to the default preferences. LoadPrefs() will then overwrite all table items for which custom user preferences exist and keep the default values of the items for which there are no user preferences.

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 to load user preferences into
Example
@APPIDENTIFIER "com.airsoftsoftwair.example"
prf = {lastfile$ = "Unnamed", lastxpos = 0, lastypos = 0}
LoadPrefs(prf)
This initializes the table prf to default values and then uses LoadPrefs() to read user preferences saved using SavePrefs() into the table. See SavePrefs for details.

Show TOC