跳到主要内容

CONCATENATE

将多个文本字符串合并为一个文本字符串。

语法

expression.CONCATENATE(arg_n);

expression - 表示 ApiWorksheetFunction 类的变量。

参数

名称必需/可选数据类型默认值描述
arg_n必需ApiRange | ApiName | string最多 255 个将被合并的数据值。

返回值

string

示例

在电子表格中将多个文本字符串合并为单个字符串。

// What happens when you join different text values together in a spreadsheet?

// Link multiple pieces of text to form one combined string in a spreadsheet.

let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.CONCATENATE("John", " ", "Adams"));