
|
<<
Index
>>
|
FutureBasic 5
|
|
put preferences
|
|
statement
|
|
Syntax:
put preferences prefFileName$, prefRecord
Description:
This statement writes the contents of the preferences record prefRecord to the file name in prefFileName$. The file is created in the preferences folder at: ~/Library/Preferences. If the file does not exist, it is created.
Example:
begin record prefsRecord
dim as Str31 name
dim as SInt32 aNumber
end record
dim as prefsRecord gMyPref
gMyPref.name = "my test name"
gMyPref.aNumber = 123456
put preferences "MyPrefs", gMyPref
do
HandleEvents
until ( gFBquit )
See Also:
get preferences; kill preferences; menu preferences