Share this page

# lrvtc_query_column

Retrieves the data in a field.

## C Language

    VTCERR2 lrvtc_query_column ( char *columnName, int rowIndex );

## C# Language

    void vts.query_column ( string columnName, int rowIndex );

## Java Language

    int Lrvtc.query_column ( string columnName, int rowIndex );

Query Functions

## Arguments

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

lrvtc_query_column retrieves the data in a field and stores it in a parameter with the same name as the column.

If there is no data in a cell, the 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 rowNum;
        ...
        rowNum = 10;
        rc = lrvtc_query_column("C_credit", rowNum);
        lr_log_message("query_column rc=%d\n", rc);
        lr_log_message("Column C_credit, row %d, value is %s", rowNum, lr_eval_string("{C_credit}"));

## C# Language Example

.Net Single Connection Example

## Java Language Example

Java Single Connection Example

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: