vtc_query_column

Deprecated. Use lrvtc_query_column. Retrieves the data in a field.

C Language

VTCERR2 vtc_query_column ( PVCI2 pvci, char *columnName, int rowIndex, char **outValue );

C# Language

string vts_multi.query_column ( int pvci, string columnName, int rowIndex );
Query Functions

Arguments

NameComments
pvciThe server connection handle.
columnNameThe name of the column.
rowIndexThe number of the row. The first row has index 1.
outValueThe value of the field.

vtc_query_column retrieves the data in a field.

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

After using the output value, free the output buffer with vtc_free.

Return Values

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

C# Language: Returns the value of the cell.

Parameterization

All string input arguments can be passed using standard parameterization.

C Language Example

int rc = 0;
char *value = NULL;

rc = vtc_query_column(pvci, "Col1", 1, &value);
lr_output_message("Query Column 1 Result = %s",
                   value);
vtc_free(value);

C# Language Example

.Net Multiple Connection Example