Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxItems.FindTag Method

Searches item data (Item.DataTag property).

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

Syntax

VB.NETFoundIndex = object.FindTag(ByVal vData As Object, ByVal StartIndex As Integer, ByVal EndIndex As Integer) As Integer
VBFoundIndex = object.FindTag(ByVal vData As Variant, ByVal StartIndex As Long, ByVal EndIndex As Long) As Long
C#.NETint FoundIndex = object.FindTag(object vData, int StartIndex, int EndIndex);
VC++long FoundIndex = object->FindTag(const _variant_t& vData, long StartIndex, long EndIndex);
CHRESULT object->raw_FindTag(VARIANT vData, long StartIndex, long EndIndex, long* FoundIndex);

object

A SftBoxItems object.

vData

The data to be searched.

StartIndex

The zero-based index of the item where the search is to begin (including the item at StartIndex). Specify StartIndex as -1 and EndIndex as -1 to search all items.

EndIndex

The zero-based index of the item where the search is to begin (including the item at StartIndex). Specify StartIndex as -1 and EndIndex as -1 to search all items.

FoundIndex

Returns the zero-based index of the item found. -1 is returned if no match was found.

Comments

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

The FindTag method searches item data (Item.DataTag property).

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

See Also SftBoxItems Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.