Share this page

# lrvtc_query_row

Retrieves the data in a row.

## C Language

    VTCERR2 lrvtc_query_row ( int rowIndex );

## C# Language

    void vts.query_row ( int rowIndex );

## Java Language

    int Lrvtc.query_row ( int rowIndex );

Query Functions

## Arguments

Name | Comments
--- | ---
rowIndex | The number of the row. The first row has index 1.

lrvtc_query_row retrieves the data in a row and stores it in parameters with the same names as the columns.

If there is no data in a cell, the corresponding output is `NULL`.

## Return Values

C Language: Returns zero on success or one of the Error Codes.

C# Language: No return value.

Java Language: Returns zero on success or one of the Error Codes.

## Parameterization

All string input arguments can be passed using standard parameterization.

## C Language Example

        int rc;
        int colSize;
        ...
        // Get the last row of data
        colSize = lrvtc_column_size("O_ID");
        rc = lrvtc_query_row(colSize);
        lr_log_message("query_row rc=%d\n", rc);
        lr_log_message("%s, %s, %s, %s",
                       lr_eval_string("{O_ID}"),
                       lr_eval_string("{O_customerID}"),
                       lr_eval_string("{O_info}"),
                       lr_eval_string("{O_status}"));

## C# Language Example

.NET Single Connection Example

## Java Language Example

Java Single Connection Example

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