Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Invalid call argument using DateAdd
#1
Solved: 10 Years, 10 Months, 1 Week ago
Hi,

I am a beginner in QTP and I have this error when I run my script. Please help.

Code:
departdate = DateAdd("m",1,"13-July-12")
Msgbox departdate

retdate = DateAdd("d", 5, departdate)
msgbox retdate

Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebList("toMonth").Select departdate 'refer to DateAdd
    Browser("Welcome: Mercury Tours").Page("Find a Flight: Mercury").WebList("toDay").Select retdate

Thanks in advance.
Reply


Messages In This Thread
Invalid call argument using DateAdd - by jow - 07-16-2012, 07:32 AM
RE: Invalid call argument using DateAdd - by jow - 07-17-2012, 02:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Click after CheckProperty to a WebElement passed via Function argument fails naruoga 0 1,038 02-28-2019, 11:46 AM
Last Post: naruoga
  Invalid file error importing xls file Makhado 0 1,217 10-04-2018, 04:33 PM
Last Post: Makhado
  The DataTable.ExportSheet operation failed. Invalid file. Niraj 2 6,125 05-05-2015, 11:40 PM
Last Post: babu123
  Invalid File error importing a spreadsheet but only on a VM msacks 1 2,605 10-19-2014, 09:04 PM
Last Post: supputuri
  How to pass all rows from data sheet in a function argument richa07 1 2,875 10-15-2012, 03:06 PM
Last Post: srinath_QTP

Forum Jump:


Users browsing this thread: 1 Guest(s)