CONCATENATE
Combines multiple text strings into one text string.
Syntax
expression.CONCATENATE(arg_n);
expression - A variable that represents a ApiWorksheetFunction class.
Parameters
| Name | Required/Optional | Data type | Default | Description |
|---|---|---|---|---|
| arg_n | Required | ApiRange | ApiName | string | Up to 255 data values that will be combined. |
Returns
string
Example
This example shows how to combine multiple text strings into one text string.
- Code
- Result
// How to add multiple text strings into one text string.
// Use function to create one text string from multiple ones.
let worksheet = Api.GetActiveSheet();
let func = Api.WorksheetFunction;
worksheet.GetRange("A1").SetValue(func.CONCATENATE("John", " ", "Adams"));