Share this page

# TCA.vtcCreateColumn

Creates a column.

If a column with the same name already exists, the function does nothing.

Equivalent method in VuGen VTS: lrvtc_create_column

    TCA.vtcCreateColumn(colName, vtsName);

## Arguments

Name | Description
--- | ---
colName | (string) The name of the column.
vtsName (Optional) | (string) The alias of the VTS server.

## Return value

A promise that is fulfilled with 0 if completed successfully. Upon failure, an exception is thrown.

## Example

Copy code

    TCA.vtcCreateColumn("MyColumn","MyVTS").then(function(result){
      TCA.done(result);
    }).catch(function (error) {
      TCA.doneWithError(error);
    });

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: