The table below list important methods which can be used with DataTable Object while you write scripts using VBScript.

QTP and Excel

Notes:

  • *GetParameterCount is one property people struggle a lot to find. This property simply gives the number of columns in a datatable. I wish the HP QTP developers could change it to GetColumnCount to remove the confusion.
  • 17 and 18 above can be used to retrieve the value at run time and store it temporarily in the run time datatable for later use.
  • The above info should suffice to work on datatable object. if you need more, refer QTP Automation Object Model Reference in the help section.

With this we also finish our series of posts on QTP and Excel. For earlier posts refer QTP and Excel Part1, QTP and Excel Part2.

If you want to keep track of further articles on QTP. I recommend you to subscribe via RSS Feed. You can also subscribe by Email and have new QTP articles sent directly to your inbox.

Also if you wish to ask any questions on above or related to QTP. Please use QTP forum.

Please use QTP forum for posting QTP questions.