How to check if a given string starts with a given substring
Posted on January 4, 2009
1 2 3 4 5 6 | 'String Manipulation - How to check if a given string starts with a given substring Option Explicit Public Function IsStartsWith(ByVal sSource As String, ByVal sText As String) As Boolean IsStartsWith = (Left$(sSource, Len(sText)) = sText) End Function |