ActiveReports 12
Split Method

GrapeCity.ActiveReports.v12 Assembly > GrapeCity.Enterprise.Data.VisualBasicReplacement Namespace > Strings Class : Split Method
Required. String expression containing substrings and delimiters.
Optional. Any single character used to identify substring limits. If delimiter is omitted, the space character (" ") is assumed to be the delimiter.
Optional. Maximum number of substrings into which the input string should be split. The default, –1, indicates that the input string should be split at every occurrence of the delimiter string.
Optional. Numeric value indicating the comparison to use when evaluating substrings. See "Settings" for values.
Returns a zero-based, one-dimensional array containing a specified number of substrings.
Syntax
'Declaration
 
Public Shared Function Split( _
   ByVal expression As String, _
   Optional ByVal delimiter As String, _
   Optional ByVal limit As Integer, _
   Optional ByVal compare As CompareMethod _
) As String()
public static string[] Split( 
   string expression,
   string delimiter,
   int limit,
   CompareMethod compare
)

Parameters

expression
Required. String expression containing substrings and delimiters.
delimiter
Optional. Any single character used to identify substring limits. If delimiter is omitted, the space character (" ") is assumed to be the delimiter.
limit
Optional. Maximum number of substrings into which the input string should be split. The default, –1, indicates that the input string should be split at every occurrence of the delimiter string.
compare
Optional. Numeric value indicating the comparison to use when evaluating substrings. See "Settings" for values.

Return Value

String array. If expression is a zero-length string (""), Split returns a single-element array containing a zero-length string. If delimiter is a zero-length string, or if it does not appear anywhere in expression, Split returns a single-element array containing the entire expression string.
See Also

Reference

Strings Class
Strings Members