get_row_from_values


Description:

public int get_row_from_values (SList<Value?> values, int[] cols_index)

Returns the first row where all the values in values at the columns identified at cols_index match.

If the row can't be identified, then returns -1;

NOTE: the cols_index array MUST contain a column index for each value in values

Parameters:

this

a DataModel object.

values

a list of Value values (no null is allowed)

cols_index

an array of int containing the column number to match each value of values

Returns:

the requested row number, of -1 if not found