Micro Focus QTP (UFT) Forums
row selection - 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: row selection (/Thread-row-selection)



row selection - samuel45 - 08-19-2010

So I'm trying to select a row in my test. When trying to select this row I assign a number to a variable and then try the command:
SelectRow (variable). However, every time the first row is selected, never the row I indicate in my command. Can anyone tell me what is going on here?


RE: row selection - supputuri - 08-20-2010

HI Samuel,

Try this.

Code:
Datatable.GetSheet(SheetName where you want to select the row).SelectRow (RowNumber)

Let me know if you need any more information.


RE: row selection - Jyobtech - 08-20-2010

HI Samuel,

can you please explain more your question?I mean ,In my previous project I done the same like this .
1) First I get the row number buy using "fn_GetRowcount" method ,Which is developed by the Development team.

2) Then I assign the num to SelectRow