CrGlobal: CrArrayNewFromString

CrArrayNewFromString

instantiate and populate a CrArray object with elements created by splitting a string

 Public Function CrArrayNewFromString(
	  ByVal Values As String,
	  Optional ByVal Delimiter As String = " ",
	  Optional ByVal SplitMax As Long = 0,
	  Optional ByVal CompareMethod As VbCompareMethod = vbBinaryCompare ) As CrArray

Parameters

Values
[ByVal] String. string holding values with which to populate the array
Delimiter
[ByVal] Optional. String. string which delimits elements within Values  

Default: " "

SplitMax
[ByVal] Optional. Long. maximum number of splits to occur; zero means unlimited  

Default: 0

CompareMethod
[ByVal] Optional. VbCompareMethod. method used to compare strings  

Default: vbBinaryCompare

Return Values

CrArray -  resulting CrArray object

Remarks

See Also

Project crgenlib Overview Class CrGlobal Overview CrGlobal Properties CrGlobal Methods CrArrayNewFromArray CrStringTrimOption