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

lrvtc.clearColumn

Clears all data in a column.

Example Data Update Functions

Syntax

lrvtc.clearColumn ( columnName );

Arguments

name Comments
columnName The column name.

lrvtc.clearColumn clears the data in all the rows of the specified column.

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 = 0;
    .... 
    rc = lrvtc.clearColumn("C_credit");
    lr.logMessage("clearColumn rc=" + rc);