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