Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getcelldata and Setcelldata
#3
Not Solved
Hi rajeshdizzy ,
i think you know the use with getcell data and setcelldata.

You can use the following code. For better understanding purpose please use one column and get all data from all the rows based on the column and then move to another column.
'One more thing is we should specify the row number while getting the column count.
'--------------------------------------------------------------------------------------
Code:
For i= 1 to Browser("SAM").Page("SAM").WebTable("Database:").ColumnCount(1)
    For j = 1 to Browser("SAM").Page("SAM").WebTable("Database:").RowCount
        Msgbox "Data from Column # " & i & ",Row # " & j &" is ''"& Browser("SAM").Page("SAM").WebTable("Database:").GetCellData(j,i) & "''."
    Next
Next
'--------------------------------------------------------------------------------------
Let me know if you need any more info.
Thanks,
SUpputuri
Reply


Messages In This Thread
Getcelldata and Setcelldata - by rajeshdizzy - 07-16-2009, 06:44 PM
RE: Getcelldata and Setcelldata - by balakrish - 07-16-2009, 06:56 PM
RE: Getcelldata and Setcelldata - by supputuri - 07-16-2009, 07:01 PM
RE: Getcelldata and Setcelldata - by rajeshdizzy - 07-17-2009, 09:52 AM
RE: Getcelldata and Setcelldata - by balakrish - 07-17-2009, 11:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using SAPGuiTable).SetCellData to Active cell. rhozeski 2 2,268 02-10-2020, 10:44 PM
Last Post: rhozeski
  SetCellData issue with JavaTable shashidtj 2 2,682 09-27-2017, 12:55 AM
Last Post: shashidtj
  Webtable().GetCellData() Returns hidden values of Cells ssvali 4 5,953 06-07-2013, 08:37 PM
Last Post: kawsar
  QTP - Webtable().GetCellData() returns unknown symbols and spaces lokesh8008 2 4,823 05-10-2013, 03:49 AM
Last Post: sria123
  GetCellData syntax jason77 1 14,604 05-12-2009, 12:00 PM
Last Post: manojith1984

Forum Jump:


Users browsing this thread: 4 Guest(s)