The 'CsvBlockSearchPos' function searches for the string from the first row to the last row of the particular column and then gets the ro position of the matched string, in the comma-block memory.
int @ CsvBlockSearchPos (int id, int column, string data);
Parameters
int id: Connection ID
assigned by a CsvBlockLoad() or CsvBlockNew() function.
int column: The column position to read
string data: The string to compare
Return Value
If it does not find a
matched string, returns -1.
If it returns another number, it is the row position.
Example
pos =
@CsvBlockSearchPos ($ ID, 0, "abc");
Description: It gets the row position to contain
"abc" string in 0th column of
the comma-block memory.
Relate items)