Utility Functions and C Language Reference > Virtual Table Server Functions (VTS) for C, C#, and Java > Virtual Table Server (VTS) Functions for Multiple Connections > Alphabetical Listing > vtc_query_column

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 );

Java Language

int Vtc.query_column (  long pvci, string columnName, int rowIndex, OutStrParameter outValue);
Query Functions

Arguments

Name Comments
pvci The server connection handle.
columnName The name of the column.
rowIndex The number of the row. The first row has index 1.
outValue The 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.

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 = 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

Java Language Example

Java Multi-Connection Example