Share this page

# TC.vtcAddCells

Adds data in multiple columns.

If the columns specified in the argument do not exist, the columns are created, and the cell contents are set to the argument values.

Equivalent method in VuGen: lrvtc_send_row1

    TC.vtcAddCells(colNames, values, option, vtsName);

## Arguments

Name | Description
--- | ---
colNames | (string) Names of the columns, delimited by a semicolon.
values | (string) Values, delimited by a semicolon.
option | (number) Defines how the values are added. 0. Add as the same row in all columns, based on the column with the highest row count. The created row is n+1 for all columns. 1. Add as stack: Last row in every column. 2. Add as unique stack: Last row in every column, but only if the value is unique in the column.
vtsName (Optional) | (string) Alias of the VTS server.

## Return value

A promise that is fulfilled with 0 if completed successfully.

## Example

Copy code

    (async ()=>{
        let ret = await TC.vtcAddCells("MyColumn1;MyColumn2;MyColumn3", "111;222;333", 1);
    })();

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