cString: Remove

Remove

Removes a substring from the string, returning a new string with the gap filled with the remaining characters.



 Public Function Remove(
	  ByRef s As String,
	  ByVal startIndex As Long,
	  ByVal Count As Long ) As String

Parameters

s
[ByRef] String. The string to remove characters from.
startIndex
[ByVal] Long. The index of the first character to begin removing. This index is zero-based.
Count
[ByVal] Long. The number of characters to be removed.

Return Values

String -  A new string with the substring removed.

Remarks

See Also

Project VBCorLib Overview Class cString Overview cString Properties cString Methods PadRight ToCharArray