Sign in Join
FPDoc Onlineexperiment

TConfigStorage.SetDeleteFullPathValue procedure

Member of TConfigStorageprotectedIn unit LazConfigStorage

Defines the method used to delete the specified node path or to reset it to a default value.

Declaration

pascal
procedure SetDeleteFullPathValue(const APath: string; 
 const AValue: string; 
 const DefValue: string); virtual
 ; abstract
procedure SetDeleteFullPathValue(const APath: string; AValue: Integer; 
 DefValue: Integer); virtual; abstract
procedure SetDeleteFullPathValue(const APath: string; AValue: Boolean; 
 DefValue: Boolean); virtual; abstract

Description

SetDeleteFullPathValue is an overloaded abstract virtual method in TConfigStorage. It must be overridden and implemented in a descendent class to use the node notation required for the underlying storage mechanism.

Overloaded variants of the method allow the AValue and DefValue arguments to be passed as either String, Integer, or Boolean types. Both arguments must use the same type. The arguments determine whether the node is removed or updated with a default value in the storage mechanism. When both arguments have the same value, the node at APath is deleted from the storage. Otherwise, the value in DefValue is stored for the specified node.

SetDeleteFullPathValue is called from the SetDeleteValue method after ExtendPath has been called to include the CurrentBasePath value at the start of the node path in APath.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.