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_column_size

vtc_column_size

Deprecated. Use lrvtc_column_size. Returns the number of fields that contain data in a column.

C Language

VTCERR2 vtc_column_size ( PVCI2 pvci,  char *columnName, int *size );

C# Language

int vts_multi.column_size ( int pvci,  string columnName );

Java Language

int Vtc.column_size (  long pvci,  string columnName, OutIntParameter size);
Global Functions

Arguments

Name Comments
pvci The server connection handle.
columnName The name of the column.
size The number of fields.

vtc_column_size returns the number of fields that contain data in the specified column. An empty string ("") is considered data.

Return Values

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

C# Language: Returns the number of fields.

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 colsize;
    ...
vtc_column_size( pvci,"C_ID", &colsize );
lr_log_message("column size of C_ID=%d\n", colsize);
    

C# Language Example

.Net Multiple Connection Example

Java Language Example

Java Multi-Connection Example