HeaderPane
Main
Hide
Share Link
Print

FindItemDataString Method, SftTree Object

Searches the Item.DataString property of items.

Deprecated - Provided for compatibility with earlier versions only - Use Items.FindDataString instead

Syntax

C#int FoundIndex = object.FindItemDataString(int ItemIndex, string ItemDataString);
VB.NETFoundIndex = object.FindItemDataString(ByVal ItemIndex As Integer, ByVal ItemDataString As String) As Integer
C++long FoundIndex = object->FindItemDataString(long ItemIndex, _bstr_t ItemDataString);
CHRESULT object->raw_FindItemDataString(long ItemIndex, BSTR ItemDataString, long* FoundIndex);
VBFoundIndex = object.FindItemDataString(ByVal ItemIndex As Long, ByVal ItemDataString As String) As Long

object

A SftTree object.

ItemIndex

The zero-based index of the item where the search begins (including ItemIndex).

ItemDataString

The value to be searched.

FoundIndex

Returns the index of the item whose Item.DataString property has the value specified by ItemData. -1 is returned if no matching item is found.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Items.FindDataString instead

The FindItemData method searches the Item.DataString property of items.

The value described by ItemDataString is compared to the Item.DataString property of all items involved in the search. The search starts at the item described by ItemIndex. If an item with a matching Item.DataString property is found, its zero-based index is returned, otherwise -1 is returned.

See Also SftTree Object | Object Hierarchy


Last Updated 11/03/2026 - (email)
© 2026 Softel vdm, Inc.