Hi,
Is it possible to get the position of a pattern match in a string that has been found using the LIKE operator?
This is what I have so far.....
Function GetDateFromString(strVar As String) As String
Dim strVarLen As Long
strVarLen = Len(strVar)
If strVar Like "*##.##.##*" Then
end if
End Function
All I need now is a way to tell the position of the pattern match so I can extract using MID, LEN. But this is proving more difficult than I'd imagined.
Any advice or pointers would be much appreciated.
Thanks,
K
Is it possible to get the position of a pattern match in a string that has been found using the LIKE operator?
This is what I have so far.....
Function GetDateFromString(strVar As String) As String
Dim strVarLen As Long
strVarLen = Len(strVar)
If strVar Like "*##.##.##*" Then
end if
End Function
All I need now is a way to tell the position of the pattern match so I can extract using MID, LEN. But this is proving more difficult than I'd imagined.
Any advice or pointers would be much appreciated.
Thanks,
K