Share this page

# TC.vtcUpdateAllMessageIfequals

Replaces a specific value inside a set of columns with a new value.

Equivalent method in VuGen: lrvtc_update_all_message_ifequals

    TC.vtcUpdateAllMessageIfequals(colNames, Message, Ifmessage, delimiter);

## Arguments

Name | Description
--- | ---
colNames | (string) The names of the columns. Column names are separated by the delimiter.
Message | (string) The new value.
Ifmessage | (string) The original value.
delimiter | (string) Delimiter to separate column names. Default: Semicolon (;).

## Return value

A promise that is fulfilled with 0 if completed successfully.

## Example

Copy code

    (async ()=>{
        let ret = await TC.vtcUpdateAllMessageIfequals("MyColumn1;MyColumn2;MyColumn3","updated","old");
    })();

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: