[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'LazConfigStorage' (#lazutils)

TConfigStorage.SetDeleteFullPathValue

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

Declaration

Source position: lazconfigstorage.pas line 37

protected procedure TConfigStorage.SetDeleteFullPathValue(

  const APath: string;

  const AValue: string;

  const DefValue: string

); virtual; abstract;

procedure TConfigStorage.SetDeleteFullPathValue(

  const APath: string;

  AValue: Integer;

  DefValue: Integer

); virtual; abstract;

procedure TConfigStorage.SetDeleteFullPathValue(

  const APath: string;

  AValue: Boolean;

  DefValue: Boolean

); virtual; abstract;

Arguments

APath

  

Path to the node updated or removed in the method.

AValue

  

Value for the node to update or remove in the method. Causes the node to be deleted when its value matches DefValue.

DefValue

  

Default value stored in the node when AValue does not match DefValue.

Arguments

APath

  

Path to the node updated or removed in the method.

AValue

  

Value for the node to update or remove in the method. Causes the node to be deleted when its value matches DefValue.

DefValue

  

Default value stored in the node when AValue does not match DefValue.

Arguments

APath

  

Path to the node updated or removed in the method.

AValue

  

Value for the node to update or remove in the method. Causes the node to be deleted when its value matches DefValue.

DefValue

  

Default value stored in the node when AValue does not match DefValue.

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

TConfigStorage.SetDeleteValue

  

Updates the value for the specified node path, or deletes it when it contains a default value.

TConfigStorage.ExtendPath

  

Resolves a relative node path to the current base path for the storage mechanism.

TConfigStorage.CurrentBasePath

  

Contains the base node path where values are read or written in the storage mechanism.

TConfigMemStorage.SetDeleteFullPathValue

  

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

TXMLConfigStorage


Version 4.0 Generated 2025-05-03 Home