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

lrvtc.createColumn

Creates a column.

Example Global Functions

Syntax

lrvtc.createColumn ( columnName );

Arguments

name Comments
columnName The name of the column to create.

lrvtc.createColumn creates a column. If a column of the same name already exists, the function does nothing.

Return Values

Returns zero on success or one of the Error Codes.

Parameterization

All string input arguments can be passed using standard parameterization.

Example

    var rc;
    ...
    rc = lrvtc.createColumn("C_ID");
    lr.logMessage("Create_column rc="+ rc);