Difference between revisions of "SaveSetting"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> procedure SaveSetting(section, setting, value: AnsiString); </source> ==Availability== SCAR Divi 3.00 > Current ==Description=...")
 
 
(2 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
==Availability==
 
==Availability==
 
SCAR Divi 3.00 > Current
 
SCAR Divi 3.00 > Current
 +
 +
*Before SCAR Divi 3.25 the settings were saved to the registry for the regular version and the settings file for the portable version.
  
 
==Description==
 
==Description==
Saves a setting value given by the [[AnsiString|string]] '''value''' to the scripts settings file in the section defined by the string [[section]] with the setting name defined by the string [[setting]].
+
Saves a setting value given by the [[AnsiString|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==
 
==Example==

Latest revision as of 16:24, 2 July 2011

Definition

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

Availability

SCAR Divi 3.00 > Current

  • Before SCAR Divi 3.25 the settings were saved to the registry for the regular version and the settings file for the portable version.

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