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

TXMLConfig.SetListItemCount

Sets the value for the Count element in a legacy version of the class.

Declaration

Source position: laz2_xmlcfg.pas line 148

public procedure TXMLConfig.SetListItemCount(

  const APath: string;

  const ACount: Integer;

  const ALegacyList: Boolean

);

Arguments

APath

  

Path to the XML node where the list is stored.

ACount

  

Value for the Count element written in the method.

ALegacyList

  

True the Count element from an older LazUtils version is used.

Description

SetListItemCount is a method used to store a Count element with the number of list items in APath. No actions are performed in the method when ALegacyList is set to False; the Count tag is not written or maintained in newer versions of the class.

SetListItemCount adds or updates the Count element to use the value in ACount. SetListItemCount deletes the Count element if its value is 0 (zero).


Version 4.0 Generated 2025-05-03 Home