Difference between revisions of "NXSL:SplitString"

From NetXMS Wiki
Jump to navigation Jump to search
m (Text replacement - "^" to "{{deprecated}}")
 
Line 1: Line 1:
__NOTOC__
{{deprecated}}__NOTOC__
Split string into array of strings at given separator.
Split string into array of strings at given separator.



Latest revision as of 18:13, 13 September 2022

This Wiki is deprecated and we are are currrently migrating remaining pages into product documentation (Admin Guide, NXSL Guide)

Split string into array of strings at given separator.

Since: 2.0.3


Syntax

SplitString(string, separator);


Parameters

string String to split.
separator Separator character. If supplied string is longer than 1 character, it's first character will be used as separator.


Return Value

Array of strings.


Examples

SplitString("a;b;c;d", ";")		->	%("a", "b", "c", "d")
SplitString("abcd", ";")		->	%("abcd")