Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
array or variable need help urgent
#1
Solved: 11 Years, 3 Months, 4 Weeks ago Shy 
Hi All
i m newbie in QTP
need help
Well m trying to get all the data from a webtable & i need to compare it with the same table if condition satisfy need to log it.

here s my piece of code that i tried.
right now m getting it through GetCellData func & putting it in a msgbox
but i guess need to store it in n array or variable & compare

Code:
i = Browser("xx").Page("xx").Frame("detailDialog-iframe").WebTable("y").RowCount
        For a = 1 to i
          j = Browser("xx").Page("xxl").Frame("detailDialog-iframe").WebTable("y").ColumnCount(i)
          For x = 1 to j step 2
        b = Browser("xx").Page("xx").Frame("detailDialog-iframe").WebTable("y").GetCellData(a,x)
msgbox b
Next
Next


I will b very thankful if nybody can help me with this
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
b is your variable. What you need is to use a if then end if to check if it reaches the valid condition.
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation URGENT: ActiveX component can't create object citibank_ani 3 15,540 09-09-2014, 01:02 PM
Last Post: VarunKaushik
  Issue related to dropdown selection(Please help urgent) excellentpawan123 2 4,270 05-31-2014, 12:00 PM
Last Post: excellentpawan123
  How to convert a single dimension array to two dimensional array venkatesh9032 3 5,514 02-10-2014, 03:07 PM
Last Post: pranikgarg
  Array as an environment variable..... rachna_nags 7 13,329 11-07-2013, 08:25 PM
Last Post: ssvali
  Urgent plz:Dropdown value is not dynamically loadng the subsequent fields accordingly Shwethareddy 0 1,972 12-04-2012, 03:30 PM
Last Post: Shwethareddy

Forum Jump:


Users browsing this thread: 1 Guest(s)