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

TConfigMemStorage.SetDeleteFullPathValue

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

Declaration

Source position: lazconfigstorage.pas line 125

protected procedure TConfigMemStorage.SetDeleteFullPathValue(

  const APath: string;

  const AValue: string;

  const DefValue: string

); override;

procedure TConfigMemStorage.SetDeleteFullPathValue(

  const APath: string;

  AValue: Boolean;

  DefValue: Boolean

); override;

procedure TConfigMemStorage.SetDeleteFullPathValue(

  const APath: string;

  AValue: Integer;

  DefValue: Integer

); override;

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 overridden method in TConfigMemStorage. 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.SetDeleteFullPathValue

  

Defines the method used to delete the specified node path or to reset it to 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.

TXMLConfigStorage


Version 4.0 Generated 2025-05-03 Home