JoinStrings()
Summary
Returns a concatenated string separated by the delimiter.
Changes
Added to Version 5.0.
Syntax
joined = JoinStrings(array values, string delimiter)
| Argument | Contents |
|---|---|
| values | An array of strings to be joined |
| delimiter | The string to put between the joined strings |
Returns
A concatenated string separated by the delimiter.
Notes
-
The delimiter can be null or an empty string.
-
Numeric values in the array will automatically be converted to strings, but other types will cause an error.
Example
values = {"Map","My First Map"}
joined = JoinStrings(values, "|")
// returns {"Map|My First Map")
See Also
| Function | Summary |
|---|---|
| CompareStrings() | Compares two strings to see if they match |
| ParseString() | Divides a string into pieces separated by the specified delimiters |
| SplitPath() | Splits a path and filename into its component parts |
| SplitString() | Divides a string into pieces based on the position of vertical bars (|) in that string |
| Word() | Extracts one word from a string |