SaveSetting

From SCAR Divi Manual
Revision as of 15:08, 2 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> procedure SaveSetting(section, setting, value: AnsiString); </source> ==Availability== SCAR Divi 3.00 > Current ==Description=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

procedure SaveSetting(section, setting, value: AnsiString);

Availability

SCAR Divi 3.00 > Current

Description

Saves a setting value given by the string value to the scripts settings file in the section defined by the string section with the setting name defined by the string setting.

Example

begin
  SaveSetting('TestScript', 'Test', 'Hello World!');
  WriteLn(LoadSetting('TestScript', 'Test'));
  DeleteSetting('TestScript', 'Test');
end.

Output:

Hello World!

See Also