Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to check for duplicate rows/items in table?
#4
See the belog script and let me know whether this helps you.


Code:
intRowCnt = Object.Table().RowCount Public Function Comapre_Table_Element(intRowCnt) If (intRowCnt = 0 Or intRowCnt = 1) Then blnStatus = False End If For intItemCntx = 0 To intRowCnt - 1 strGetVal1 = Object.Table().GetCellData(intItemCntx, "Level") For intItemCnty = intItemCntx + 1 To intRowCnt - 1 strGetVal2 = Object.Table().GetCellData(intItemCnty, "Level") If (StrComp(strGetVal1, strGetVal2, VbTextCompare) = 0) Then blnStatus = False Exit For Else blnStatus = True End If Next If (blnStatus = False) Then Exit For End If Next Comapre_Table_Element = blnStatus End Function
Reply


Messages In This Thread
RE: How to check for duplicate rows/items in table? - by guin.anirban - 08-03-2010, 12:10 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to fetch items from WpfList in UFT saurabhkumar_gupta 0 3,036 03-08-2015, 09:17 PM
Last Post: saurabhkumar_gupta
  How to Delete Rows with duplicate values in 1 columns in excel thru QTP. arpan 0 3,417 02-09-2015, 08:47 PM
Last Post: arpan
  Can't locate items on Win7 Desktop RandomGrin 0 2,646 01-30-2015, 10:55 PM
Last Post: RandomGrin
  How to get center data value in a odd number of rows and columns web table ... sai rajesh 0 3,473 11-13-2013, 10:24 PM
Last Post: sai rajesh
  to count the number of used rows in a particular column sujaravi123 3 12,235 06-12-2013, 03:17 PM
Last Post: sujaravi123

Forum Jump:


Users browsing this thread: 1 Guest(s)