Signature (Visual Basic / VBA)
Public Function StripMatchingBeginLineFast( _
ByRef vLine As String _
, ByRef vFind As String _
, ByRef vCompare As VbCompareMethod _
) As String
Code Example
StripMatchingBeginLineFast("This is a test.", "This", vbBinaryCompare) = " is a test."
StripMatchingBeginLineFast("This is a test.", " is ", vbBinaryCompare) = "This is a test.
StripMatchingBeginLineFast("This is a test.", "", vbBinaryCompare) = "This is a test. ' Behavior #1
Parameters
| Parameter | Description |
|---|---|
| vLine | The string whose beginning is to be removed if it matches string vFind. |
| vFind | The string which is to be removed from the beginning of vLine if present. Function returns vLine unchanged if vFind is an empty string (Behavior #1). |
| vCompare | Specifies the type of comparison used to determine if the strings match (Behavior #2). |