$ps.CSV.csv2str
Overview¶
Converts a two-dimensional array object to a string in the "Server Script".
Syntax¶
Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| csv | object | Yes | Object |
Return Value¶
Returns the converted string separated by commas.
Exceptions¶
If an exception occurs in C#, the server script will generate an exception by putting the exception class name and error message into the Error object.
Usage Examples¶
In the following example, a two-dimensional array object is converted to a string and output to the console.
JavaScript¶
const csv = [
['label', 'nnum1', 'num2'],
['a', '1', '3'],
['b', '2', '4'],
];
const text = $ps.CSV.csv2str(csv);
context.Log(text);
Example output¶
Supported Versions¶
| Supported versions | Body |
|---|---|
| 1.4.12.0 or later | Added function |