Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftBoxItems.FindDataTag Method

Searches item data (Item.DataTag property).

Syntax

VB.NETFoundIndex = object.FindDataTag(ByVal vData As Object, ByVal StartIndex As Integer, ByVal EndIndex As Integer) As Integer
VBFoundIndex = object.FindDataTag(ByVal vData As Variant, ByVal StartIndex As Long, ByVal EndIndex As Long) As Long
C#.NETint FoundIndex = object.FindDataTag(object vData, int StartIndex, int EndIndex);
VC++long FoundIndex = object->FindDataTag(const _variant_t& vData, long StartIndex, long EndIndex);
CHRESULT object->raw_FindDataTag(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

The FindDataTag 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.