SftBox/OCX 4.5

SftBoxItems.FindCellDataTagV Method

Softel vdm, Inc.

Searches cell data (Cell.DataTag property).

Syntax       

VB.NET

object.FindCellDataTagV(ByVal vData As Object, ByVal StartIndex As Integer, ByVal EndIndex As Integer, ByVal ColNum As Short, ByRef FoundIndex As Object, ByRef FoundColNum As Object)

VB

object.FindCellDataTagV(ByVal vData As Variant, ByVal StartIndex As Long, ByVal EndIndex As Long, ByVal ColNum As Integer, FoundIndex As Variant, FoundColNum As Variant)

C#.NET

void object.FindCellDataTagV(object vData, int StartIndex, int EndIndex, short ColNum, out object FoundIndex, out object FoundColNum);

VC++

HRESULT object->FindCellDataTagV(const _variant_t& vData, long StartIndex, long EndIndex, short ColNum, const _variant_t&* FoundIndex, const _variant_t&* FoundColNum);

C

HRESULT object->raw_FindCellDataTagV(VARIANT vData, long StartIndex, long EndIndex, short ColNum, VARIANT* FoundIndex, VARIANT* FoundColNum);

Delphi

procedure object.FindCellDataTagV(vData : OleVariant, StartIndex : Integer, EndIndex : Integer, ColNum : Smallint, out FoundIndex : OleVariant, out FoundColNum : OleVariant);

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.

ColNum

The zero-based index of the column to be searched. Only cells in this column will be searched. Specify -1 to search all columns of the items defined by StartIndex and EndIndex.

FoundIndex

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

FoundColNum

Returns the zero-based column number of the cell found. -1 is returned if no match was found.

Comments

The FindCellDataTagV method searches cell data (Cell.DataTag property).

The Items.FindCellDataTag and Items.FindCellDataTagV methods are synonyms. The Items.FindCellDataTagV method is used with Internet Explorer/VBScript.

The data described by vData is compared to the Cell.DataTag property of all cells involved in the search. The search starts at the item described by StartIndex and is restricted to the column specified by ColNum. If an item with a matching Cell.DataTag property is found, its zero-based index and column number is returned, otherwise -1 is returned.


Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com