Constructors: NewString

NewString

Initializes a new String to the value indicated by an array of Unicode characters, a starting character position within that array, and a length.



 Public Function NewString(
	  ByRef Value ( ) As Integer,
	  Optional ByRef StartIndex As Variant,
	  Optional ByRef Length As Variant ) As String

Parameters

Value
[ByRef] Integer. An array of Unicode characters.
StartIndex
[ByRef] Optional. Variant. The starting position within Value. Defaults to start of Value.
Length
[ByRef] Optional. Variant. The number of characters within Value to use. Defaults to using from StartIndex to end of array.

Return Values

String -  A String initialized from the characters in Value.

Exceptions

ExceptionCondition
ArgumentNullExceptionValue is Nothing.
ArgumentOutOfRangeException StartIndex is less than the lower-bound of Value.
-or-
Length is less than zero.
-or-
The sum of StartIndex and Length is greater than the upper-bound of Value.

See Also

Project CorLib Overview

Class Constructors Overview