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 = 512 ) 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: 512
Return Values
StringBuilder - A new StringBuilder with s already placed in the buffer.
Remarks
See Also
Project VBCorLib Overview
Class Constructors Overview
Constructors Properties
Constructors Methods
NewStreamWriter
NewStringReader