Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is error in script?
#2
Solved: 10 Years, 9 Months, 1 Week ago
hi rahul1234,
The 'SheetID' argument for DataTable.Value is optional and the values could be the sheetname, index or dtLocalSheet or dtGlobalSheet.
If you do not specify a value for this, the first sheet in the datatable is used i.e global sheet.

This will work for any value you specify like MySheet, dtdemoSheet etc. I think QTP treats this as a variable and it gets it as empty as not declared anywhere and uses the first sheet. this is why your script is working.
Use Option Explicit.

Reply


Messages In This Thread
What is error in script? - by rahul1234 - 11-10-2009, 08:53 PM
RE: What is error in script? - by Saket - 11-11-2009, 10:52 AM
RE: What is error in script? - by rahul1234 - 11-11-2009, 08:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  .vbs script error when trying to insert a value in a sapguitable frebuffi 5 6,496 07-18-2013, 03:04 PM
Last Post: Staff
  Error while creating object using description.create object in VB script SarodeGirish 5 5,825 06-19-2012, 05:30 PM
Last Post: ssvali
  Receiving an IIS authentication error when replaying a.net windows application script nithya.cov@gmail.com 0 2,446 04-16-2011, 10:58 AM
Last Post: nithya.cov@gmail.com
  error in datbase script sandeep.shivnani@gmail.com 0 2,187 03-08-2011, 06:03 PM
Last Post: sandeep.shivnani@gmail.com
  I couldn't rectify the error in following script..pls helpme frds.. Kishore_J 7 4,781 01-26-2011, 10:05 PM
Last Post: cdesserich

Forum Jump:


Users browsing this thread: 1 Guest(s)