Micro Focus QTP (UFT) Forums
how to clear datatable during runtime - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: how to clear datatable during runtime (/Thread-how-to-clear-datatable-during-runtime)



how to clear datatable during runtime - smilefouru - 02-25-2008

Hi Ankur,

Thanks for correcting for mistake regarding the message I typed which is "Urgent" kind of words. Sorry for that...

I understand that you are spending your valuable time for answering to our questions.

I have a question, can you provide sample script on how to clear the datatable either localsheet or global sheet during runtime?

Thanks,

Ram


RE: how to clear datatable during runtime - Ankur - 02-25-2008

it's ok Ram

Well, Can I know the reason , why you want to do this?

As far as I know, you can't make any changes to design time datatable...you can only make changes to run time datatable.


RE: how to clear datatable during runtime - aksv18 - 02-25-2008

Hi Ram,

I think Ankur is right you can only change the run time data table during run time.

I think you can add or delete parameter a.k.a column during run time.... try searching the dataTable object in the QTP help file.


RE: how to clear datatable during runtime - smilefouru - 02-26-2008

Hi Ankur,

Thanks for the response,

You are correct, we can only modify the data in runtime, Same thing i am expecting, i want delete a one row from runtime datatable.

Actually i want to delete the row from runtime data table. As per the scenario I want to use data that suits to the scenario based on the search key and remaining i want to delete.

Your response is highly appreciated..

Ram