Signature (Visual Basic / VBA)
Public Function LineEndsWithFast( _
ByRef vLine As String _
, ByRef vFind As String _
, ByRef vCompare As VbCompareMethod _
) As Boolean
Code Example
LineEndsWithFast("This is a test.", "TEST.", vbTextCompare) = True
LineEndsWithFast("This is a test.", "IS", vbTextCompare) = False
LineEndsWithFast("This is a test.", "", vbTextCompare) = True
Parameters
| Parameter | Description |
|---|---|
| vLine | The string whose end is checked to see if it matches string vFind. |
| vFind | The string which is to be searched for at the end of string vLine. |
| vCompare | Specifies the type of comparison used to determine if the strings match. |
Notes & Version History
| Note | Unlike most other string search functions, this one returns True if vFind is an empty string. |