Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
adding webtable to dictonaryobject
#1
Not Solved
Hi Guys,
Could u please help me on this
I just want to know how to add the webtable data in to dictionary object
Code:
Set dictobj=createobject("Scripting.Dictionary")
Set T=Browser("title:=Google").page("title:=Google").webtable("name:=Google")
row=T.rowcount
col=T.columncount()
For icol=1 to col
dictobj.add "I want to know how to add here the webtable data"

Next
Thanks and Regards
Prabu.E
Reply
#2
Not Solved
Hi,
Not sure if you want to add complete data of webtable in dictionary object. If so, then refer to the below code:
Code:
Set dictobj=createobject("Scripting.Dictionary")
Set T=Browser("title:=Google").page("title:=Google").webtable("name:=Google")
row=T.rowcount
col=T.columncount()
For icol=1 to col
For irow=1 to row
Text=Browser().page().webtable().getCell data(irow,icol)
dictobj.Add "CellData(irow,icol),"text"
Next
Next

might be some syntax issue but I think u can refer to the logic if required.

Regards,
Sankalp
Reply
#3
Not Solved
Prabu:

Do a search on "QTP Nested Dictionary".

hth,


Parke
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pages and Frames adding _1, _2, _3... zunebuggy 1 1,490 05-30-2017, 12:17 AM
Last Post: Vichu M J
  Adding negative amount in webedit Rose 1 1,986 06-30-2016, 09:34 PM
Last Post: babu123
  Adding data into rows that add dynamically with setcelldata azar81 4 5,629 04-13-2015, 05:24 PM
Last Post: vidya2k2
  Adding value from database to datatable kriday 6 4,188 07-10-2013, 02:26 AM
Last Post: kriday
  Adding text in the BODY of new composed email in hotmail milo2012 1 2,167 10-02-2012, 08:03 PM
Last Post: jacosta

Forum Jump:


Users browsing this thread: 1 Guest(s)