Adding rows to the DataTable - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: Adding rows to the DataTable (/Thread-Adding-rows-to-the-DataTable) |
Adding rows to the DataTable - bdc - 02-07-2009 Hello, I cannot seem to add rows to my Datatable. I am capturing transaction times using the MercuryTimers function then I save the first value along with the column name using the Addparameter function. This all works fine, but I do many iterations and I want to populate the rows of the existing columns not keep adding more columns. Is there a way to do this? Code: DataTable.GetSheet("Action1") RE: Adding rows to the DataTable - bdc - 02-07-2009 I found one answer here I will try, my search criteria was not so good https://www.learnqtp.com/forums/add-a-row-to-a-datatable-t-1461.html RE: Adding rows to the DataTable - newqtp - 02-17-2009 Code: p=datatable.AddSheet ("My").AddParameter("city","New York") RE: Adding rows to the DataTable - bdc - 02-25-2009 the idea was to load columns that match the raw data from loadrunner that I am gathering so I could extrapolate the page rendering time rather than having to cut rows and paste them into columns manually. the following solution worked: Code: Set ExcelApp = CreateObject("Excel.Application") |