JavaScript Functions > Virtual Table Server Functions for Single Connection (lrvtc) > Alphabetical Listing of Virtual Table Server Functions (Single Server) > lrvtc.columnSize

lrvtc.columnSize

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

Example Global Functions

Syntax

lrvtc.columnSize ( columnname );

Arguments

name Comments
columnname The name of the column.

lrvtc.columnSize 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.

Example

    var colsize;
    ...
    colsize = lrvtc.columnSize("C_ID");
    lr.logMessage("column size of C_ID="+ colsize);