Public Function LineBeginsWithFast( _ ByRef vLine As String _ , ByRef vFind As String _ , ByRef vCompare As VbCompareMethod _ ) As Boolean
LineBeginsWithFast("This is a test.", "THIS", vbTextCompare) = True LineBeginsWithFast("This is a test.", "IS", vbTextCompare) = False LineBeginsWithFast("This is a test.", "", vbTextCompare) = TruevLine: The string whose beginning is checked to see if it matches string vFind.
Note: Unlike most other string search functions, this one returns True if vFind is an empty string.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.