AwDbExData.GetRowIndex Method 

Gets an index of a view row that coincides with specified primary keys by a parameter.

[Visual Basic]
Public Function GetRowIndex( _
   ByVal primaryKeyColsValue As Object() _
) As Integer
[C#]
public int GetRowIndex(
   object[] primaryKeyColsValue
);

Parameters

primaryKeyColsValue
Primary key values.

Return Value

Returns an index if a row exists; otherwise -1.

Example

How to get an index of a view row that coincides with specified primary keys by a parameter.

Dim pkCols As String() = {"00001"}
Dim index As Integer = dbExData.GetRowIndex(pkCols)
string[] pkCols = new string[] { "00001" };
int index = dbExData.GetRowIndex(pkCols);

See Also

AwDbExData Class | Asterworld.Data Namespace

Home | Software & Source Code Library | About Us | Information Based on Law | Terms of Service
Software List | Product Price List | How to Buy | Order Form | FAQ | Site Map
Copyright (C) 2001-2012 Asterworld. All Rights Reserved.