Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Having problem with Verification
#4
Solved: 10 Years, 9 Months, 1 Week ago
My mistake and a thousand apologies. It should be,
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
This will help you to check which string is greater and what is the reason it is failing.
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.
Reply


Messages In This Thread
Having problem with Verification - by qapandit - 07-24-2013, 11:28 PM
RE: Having problem with Verification - by basanth27 - 07-26-2013, 10:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  XML Verification naani12 0 1,822 08-01-2012, 07:38 AM
Last Post: naani12
Shy Email Verification using QTP Brian T. 0 5,512 05-10-2011, 11:42 PM
Last Post: Brian T.

Forum Jump:


Users browsing this thread: 1 Guest(s)