The Split function returns an index.
Description
Returns a one-dimensional array with a subscript starting from zero. It contains a specified number of substrings.
Syntax
Split (expression [, delimiter [, count [, compare])
The Split function syntax includes the following parts:
Partial description
Expression is required. A string expression that contains substrings and delimiters. If expression is a zero-length string (""), Split returns an empty array with no elements or data.
Optional. String character used to identify the substring boundary. If ignored, the space character ("") is used as the separator. If delimiter is a zero-length string, the returned array contains only one element, that is, the complete expression string.
Optional. The number of substrings to return.-1 indicates that all substrings are returned.
Compare is optional. Numeric value, indicating the comparison method used to identify a substring. For more information about the value, see "set value.
Set value
The compare parameter settings are as follows:
Constant value description
VbUseCompareOption-1 is compared with the set value in the Option Compare statement.
VbBinaryCompare 0 performs binary comparison.
VbTextCompare 1.
VbDatabaseCompare 2 is only used for Microsoft Access. Perform comparison based on your database information.