Sign in Join
FPDoc Onlineexperiment

TDOMAttrDef.AddEnumToken function

Member of TDOMAttrDefpublicIn unit Laz2_DOM

Adds the specified value to the allowed values for the attribute node.

Declaration

pascal
function AddEnumToken(Buf: DOMPChar; Len: Integer): Boolean

Arguments

Buf

DOMPChar value added to the enumeration.

Len

Length of the value in Buf.

Function result

True if the value was successfully added in the method.

Description

Checks existing values in the enumeration to prevent duplicates. The return value is False if Buf already exists in the enumeration.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.