From 0277b5c9aeeec8a16d4362164146b7054122ed72 Mon Sep 17 00:00:00 2001 From: dsiders Date: Thu, 2 Jun 2022 23:02:21 +0100 Subject: [PATCH] Docs: LazUtils/laz2_xmlcfg. Updates topics with TODO items for missing or modified arguments. --- docs/xml/lazutils/laz2_xmlcfg.xml | 33 ++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/docs/xml/lazutils/laz2_xmlcfg.xml b/docs/xml/lazutils/laz2_xmlcfg.xml index 8636bbb3df..f002be4270 100644 --- a/docs/xml/lazutils/laz2_xmlcfg.xml +++ b/docs/xml/lazutils/laz2_xmlcfg.xml @@ -673,7 +673,7 @@

- GetValue is an overloaded function used to get the value stored in a DOM node at the path specified in APath. Overloaded variants are provided to return String, Integer, Int64, Boolean, and TRect data types. + GetValue is an overloaded function used to get the value stored in a DOM node at the path specified in APath. Overloaded variants are provided to return String, Integer, Int64, Boolean, and TRect data types. Other variants allow the arguments to be represented as various data types including untyped constants.

APath contain the path specifier that represents the hierarchy of elements and attributes in Document where the value is stored. See TXMLConfig Path Syntax for details about path specifiers. @@ -687,9 +687,6 @@

Use GetExtendedValue to get the value for a DOM node as an Extended (or Float) data type.

-
@@ -755,9 +752,6 @@

Use SetExtendedValue to store an Extended data type in a specified DOM node.

- @@ -781,9 +775,18 @@ Updates or removes the value at the specified path - +

+ 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 DeletePath. When AValue and DefValue are equal, this indicates the node value is the default or unassigned value for the node and DeletePath is called to remove the node at APath. Otherwise, SetValue is called to store AValue to the node path. +

+

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

- + + + + +
Path specifier for the value affected in the method. @@ -802,7 +805,6 @@ - Sets the value in the DOM node at the specified path using an extended data type. @@ -821,6 +823,7 @@ + @@ -834,7 +837,13 @@ Updates or removes the Extended value at the specified path. - + + + + + + + Path specifier to the node affected in the method. @@ -1458,7 +1467,7 @@ ACfg.Free; ACfg.SetValue('list/items/item[0]/name', 'itemA'); ACfg.SetValue('list/items/item[0]/value', 'valueA'); ACfg.SetValue('list/items/item[1]/name', 'itemB'); -ACfg.SetValue('list/items/item[1]/value', 'ValueB'); +ACfg.SetValue('list/items/item[1]/value', 'valueB'); ACfg.SetValue('list/items/item[2]/name', 'itemC'); ACfg.SetValue('list/items/item[2]/value', 'valueC');