Constructors: NewStringBuilder

NewStringBuilder

Returns a new StringBuilder with user specified settings and starting string.



 Public Function NewStringBuilder(
	  Optional ByRef s As String,
	  Optional ByRef StartIndex As Variant,
	  Optional ByRef Count As Variant,
	  Optional ByVal Capacity As Long = 128 ) As StringBuilder

Parameters

s
[ByRef] Optional. String. A string to be inititially placed in the builder. If this is specified, then Capacity will be set to no less than Count.
StartIndex
[ByRef] Optional. Variant. The starting index in s to begin placing into the buffer.
Count
[ByRef] Optional. Variant. The number of characters in s to place into the buffer.
Capacity
[ByVal] Optional. Long. The capacity of the internal buffer. If this is less than Count, then Count will override this value.  

Default: 128

Return Values

StringBuilder -  A new StringBuilder with s already placed in the buffer.

See Also

Project CorLib Overview

Class Constructors Overview