Difference between revisions of "LoadSetting"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function LoadSetting(section, setting: AnsiString): AnsiString; </source> ==Availability== SCAR Divi 3.00 > Current ==Descript...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
==Description== | ==Description== | ||
Loads a setting from the section given by '''section''' and the defined by the setting name given by '''setting'''. | Loads a setting from the section given by '''section''' and the defined by the setting name given by '''setting'''. | ||
+ | |||
+ | *Before SCAR Divi 3.25 the settings were loaded from the registry for the regular version and the settings file for the portable version. | ||
==Example== | ==Example== |
Latest revision as of 15:24, 2 July 2011
Definition
function LoadSetting(section, setting: AnsiString): AnsiString;
Availability
SCAR Divi 3.00 > Current
Description
Loads a setting from the section given by section and the defined by the setting name given by setting.
- Before SCAR Divi 3.25 the settings were loaded from the registry for the regular version and the settings file for the portable version.
Example
begin SaveSetting('TestScript', 'Test', 'Hello World!'); WriteLn(LoadSetting('TestScript', 'Test')); DeleteSetting('TestScript', 'Test'); end.
Output:
Hello World!