
|
<<
Index
>>
|
FutureBasic 5
|
get preferences
|
|
statement
|
|
Syntax:
get preferences prefFileName$, prefRecord
Description:
This statement locates the preference file prefFileName$
in the preferences folder at: ~/Library/Preferences and loads the contents of the file into the preferences record prefRecord
.
Example:
// The example assumes the preference file has been created with the example on the Put Preferences help page.
begin
record
prefsRecord
dim
as
Str31 name
dim
as
SInt32 aNumber
end
record
dim
as
prefsRecord gMyPref
get preferences
"MyPrefs", gMyPref
print
gMyPref.name
print
gMyPref.aNumber
do
HandleEvents
until
( gFBquit )
See Also:
put preferences; kill preferences; menu preferences