Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use Or in If Statement question
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
When I try:
Code:
If ZipDialogName = "SECURITIES BACKED LINE OF CREDIT - HISTORICAL" or "STATEMENTS - PMA"
Then

I get a run error of:
Type mismatch: '[string: "STATEMENTS - PMA"]'
Function file: O:\QTP_Tests\NightlyRegressionTesting\Tests\LibraryImageAccessFunctions.qfl
Line (639): "If ZipDialogName = "SECURITIES BACKED LINE OF CREDIT - HISTORICAL" or "STATEMENTS - PMA" Then".

Must I only use:
Code:
If ZipDialogName = "SECURITIES BACKED LINE OF CREDIT - HISTORICAL" or ZipDialogName  = "STATEMENTS - PMA" Then

thx for your ideas.
Reply


Messages In This Thread
Use Or in If Statement question - by mv8167 - 08-08-2012, 08:47 PM
RE: Use Or in If Statement question - by Saket - 08-08-2012, 11:30 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)