"itemExists"

The attribute "itemExists"; is used to check whether the specified item exists in a tree widget or not.

Synopsis

shape.itemExists(string ID);

Parameters

Parameter Description
shape Object name
Id The ID of the item

Description

The attribute "itemExists"; is used to check whether an item exists in a tree widget or not.

Example

The following example checks whether the item "WinCC OA"; exists in the tree widget "TREE1";.

main()
{
  DebugN("Does the item WinCC OA exist: ",TREE1.itemExists("WinCC OA"));
}

Assignment

Tree widget