Utility Functions and C Language Reference > Virtual Table Server Functions (VTS) for C, C#, and Java > Virtual Table Server (VTS) Functions for Single Connection > Alphabetical Listing > lrvtc_column_size

lrvtc_column_size

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

C Language

int lrvtc_column_size ( char *columnName );

C# Language

int vts.column_size ( string columnName );

Java Language

int vLrvtc.column_size ( string columnName );
Global Functions

Arguments

Name Comments
columnName The name of the column.

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

Return Values

The number of fields containing data in the column.

Parameterization

All string input arguments can be passed using standard parameterization.

C Language Example

    int colsize;
    ...
    colsize = lrvtc_column_size("C_ID");
    lr_log_message("column size of C_ID=%d\n", colsize);
    

C# Language Example

.Net Single Connection Example

Java Language Example

Java Single Connection Example