Split - function of language VBScript

Returns a 1-dimensional array of substrings (zero-based index).

For the purposes of PROMOTIC system, it is more usefull to use the method: Pm.StringSplit.

Split(expression As String, [delimiter As Variant], [count As Integer], [compare As Integer]) As Array
a = Split(expression[, delimiter[, count[, compare]]])
expression(String) String expression containing substrings and delimiters. If expression is a empty string, function returns an empty array, that is, an array with no elements and no data.
delimiter[optional] (Variant) String character used to identify substring limits. If omitted, the space character (" ") is assumed to be the delimiter. If delimiter is a empty string, a single-element array containing the entire expression string is returned.
count[optional] (Integer) The number of substrings to be returned. Value -1 means that all substrings are returned.
compare[optional] (Integer) Numeric value indicating the kind of comparison to use when evaluating substrings. If omitted, a binary comparison is performed.
vbBinaryCompare - perform a binary comparison
vbTextCompare - perform a textual comparison
Dim arr
arr = Split("PROMOTIC:is:fun!", ":")
  ' arr(0) contains "PROMOTIC"
  ' arr(1) contains "is"
  ' arr(2) contains "fun!"
PROMOTIC 8.3.20 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice