Share this page

# TC.vtcSearchRow

Searches for a row containing specific values in specific columns.

Equivalent method in VuGen: lrvtc_search_row

    TC.vtcSearchRow(columns, values, delimiter, vtsName);

## Arguments

Name | Description
--- | ---
columns | (string) The names of the columns to search. Column names are separated by the specified delimiter.
values | (string) The values of the columns to search. Values are separated by the specified delimiter.
delimiter | (string) The character that separates the column names and values in the lists. If a string is passed in delimiter (rather than a single character), the string as a whole is the delimiter.
vtsName (Optional) | (string) The alias of the VTS server.

## Return value

0: If API call was successful but no row was found.

1: If API call was successful and the row was found.

If the API call failed, it returns the error code.

(object)

Returns the whole row values if the columns exist. For example, `{col1:"a", col2:"b",col3:"c"}` Otherwise, it returns null.

## Example

Copy code

    TC.vtcSearchRow("col1,col2","a,b",",","test");

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: