Difference between revisions of "DeleteSetting"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function DeleteSetting(Section, Setting: AnsiString): Boolean; </source> ==Availability== SCAR Divi 3.20 > Current ==Descripti...")
 
Line 9: Line 9:
 
==Description==
 
==Description==
 
Deletes a setting from the section given by '''section''' and the defined by the setting name given by '''setting'''.
 
Deletes a setting from the section given by '''section''' and the defined by the setting name given by '''setting'''.
 +
 +
*Before SCAR 3.25 the settings were deleted from the registry for the regular version and the settings file for the portable version.
  
 
==Example==
 
==Example==

Revision as of 15:24, 2 July 2011

Definition

function DeleteSetting(Section, Setting: AnsiString): Boolean;

Availability

SCAR Divi 3.20 > Current

Description

Deletes a setting from the section given by section and the defined by the setting name given by setting.

  • Before SCAR 3.25 the settings were deleted 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!

See Also