Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to get column count
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi All,

how to get the number of columns present in webtable,
as we know the number of rows as rowcount , is there any function for dat.
can any one suggest me how to do.




Thanks in advance
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
Code:
WebTable().ColumnCount(RowNumber)
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
Code:
vf.sheets(1).usedrange.rows.count

we have this method for getting no. of active rows in excel sheet,

but how to get for columns.
Reply
#4
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi,

U can use
Code:
col_Count=ExcelSheet.usedrange.columns.count

Regards,
Sankalp
Reply
#5
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi,

Please tell how to get the no of columns from a specific sheet of datatble?

Thanks,
Swarna
Reply
#6
Solved: 11 Years, 4 Months, 3 Weeks ago
Below is used to get column count from a specific sheet of datatable

Code:
DataTable.GetSheet("sheet name"/sheetid).getparametercount

Ex:- Column Count from GlobalSheet
ColCnt = DataTable.GetSheet(1).getparametercount
msgbox ColCnt
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT] Get column name from SfwObject felino 0 3,054 12-02-2015, 04:07 PM
Last Post: felino
  Unable to right click column header sudhirzpatil 4 6,454 07-18-2013, 09:42 PM
Last Post: sudhirzpatil
  datatable column exist diya 3 12,603 12-11-2012, 11:24 AM
Last Post: elango87
  Adding Value to DataTable Column kriday 3 6,680 09-14-2012, 11:51 AM
Last Post: SIBICA
  Adding Value to DataTable Column kriday 1 2,682 09-13-2012, 11:38 PM
Last Post: ravi.gajul

Forum Jump:


Users browsing this thread: 1 Guest(s)