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

TXMLConfig.SetDeleteValue

Updates or removes the value stored at the specified path.

Declaration

Source position: laz2_xmlcfg.pas line 119

public procedure TXMLConfig.SetDeleteValue(

  const APath: string;

  const AValue: string;

  const DefValue: string

);

procedure TXMLConfig.SetDeleteValue(

  const APath: string;

  AValue: Int64;

  DefValue: Int64

);

procedure TXMLConfig.SetDeleteValue(

  const APath: string;

  AValue: Boolean;

  DefValue: Boolean

);

procedure TXMLConfig.SetDeleteValue(

  const APath: string;

  const AValue: TRect;

  const DefValue: TRect

);

procedure TXMLConfig.SetDeleteValue(

  const APath: string;

  const AValue;

  const DefValue;

  const APTypeInfo: PTypeInfo

);

procedure TXMLConfig.SetDeleteValue(

  const APath: string;

  const AValue;

  DefValue: Int64;

  const APTypeInfo: PTypeInfo

);

procedure TXMLConfig.SetDeleteValue(

  const APath: string;

  const AValue;

  const APTypeInfo: PTypeInfo

);

Arguments

APath

  

Path specifier for the value affected in the method.

AValue

  

Value to store at the specified path.

DefValue

  

Value which indicates the path should be removed instead of updated.

Arguments

APath

  

Path specifier for the value affected in the method.

AValue

  

Value to store at the specified path.

DefValue

  

Value which indicates the path should be removed instead of updated.

Arguments

APath

  

Path specifier for the value affected in the method.

AValue

  

Value to store at the specified path.

DefValue

  

Value which indicates the path should be removed instead of updated.

Arguments

APath

  

Path specifier for the value affected in the method.

AValue

  

Value to store at the specified path.

DefValue

  

Value which indicates the path should be removed instead of updated.

Arguments

APath

  

Path specifier for the value affected in the method.

AValue

  

Value to store at the specified path.

DefValue

  

Value which indicates the path should be removed instead of updated.

APTypeInfo

  

Pointer to the RTTI type information for the value / default value.

Arguments

APath

  

Path specifier for the value affected in the method.

AValue

  

Value to store at the specified path.

DefValue

  

Value which indicates the path should be removed instead of updated.

APTypeInfo

  

Pointer to the RTTI type information for the value / default value.

Arguments

APath

  

Path specifier for the value affected in the method.

AValue

  

Value to store at the specified path.

APTypeInfo

  

Pointer to the RTTI type information for the value / default value.

Description

SetDeleteValue is an overloaded method used to update or remove the node at the path specified in APath. The AValue and DefValue arguments determine whether the node is updated, or removed by calling DeleteValue. When AValue and DefValue are equal, this indicates the node has the default or unassigned value; DeleteValue is called to remove the node at APath. Otherwise, SetValue is called to store AValue to the specified node path.

The overloaded variants allow the AValue and DefValue arguments to contain various data types including: String, Int64, Boolean, TRect, or untyped constants.

See also

TXmlConfig.SetDeleteExtendedValue

  

Updates or removes the Extended value at the specified path.

TXmlConfig.DeleteValue

  

Deletes the value stored in the DOM node at the specified path.

TXmlConfig.GetValue

  

Gets the value from the DOM node at the specified path in the XML configuration file.


Version 4.0 Generated 2025-05-03 Home