When using the SPLITSTRING function with a path, it is good practice to provide both backslash and forward slash as delineating characters ( /\\ ). This will ensure that the path will be split correctly, regardless of operating system.
Specifies the string to split.
Specifies the characters used to delineate a separation between substrings of the string to split.
If an empty string, "", is used, each character of the string will be split into a separate substring.
1. |
The following example returns the array, ["Matrox", "Design", "Assistant"].
SPLITSTRING("Matrox Design Assistant", " ")
|
2. |
The following example returns an array containing the names of each folder making up the path to the DA Documents folder.
SPLITSTRING(PATH("DA Documents"), "/\\")
|
Specifies the string to split.
Specifies the characters used to delineate a separation between substrings of the string to split.
If an empty string, "", is used, each character of the string will be split into a separate substring.
Specifies the index of the substring (of the split string) to return.
1. |
The following example returns "Design", which is the second substring of the string.
SPLITSTRING("Matrox Design Assistant", " ", 2)
|