07-26-2013, 10:47 AM
My mistake and a thousand apologies. It should be,
The result is returned as such,
-1 if Str1 is less than Str2,
1 if Str1 is greater than Str2
0 if the strings are the same.
You may want to try the below to check what is happening with your code,
This will help you to check which string is greater and what is the reason it is failing.
Code:
StrComp(Trim(GetReturnedName),Trim(ReturnedNameFormat))=0
The result is returned as such,
-1 if Str1 is less than Str2,
1 if Str1 is greater than Str2
0 if the strings are the same.
You may want to try the below to check what is happening with your code,
Code:
msgbox StrComp(Trim(GetReturnedName),Trim(ReturnedNameFormat))=0
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.