Posts: 106
Threads: 28
Joined: Jan 2008
Reputation:
0
01-13-2008, 10:58 AM
Hi, I was reading some Interview question on net I found somebody mention to use getcolumncount method for counting column.But I've tried in Qtp but couldn't found anything.Please clear this doubt.If this property do exist then how to use it.
Thanks in advance,
New To Qtp.
Posts: 1,105
Threads: 18
Joined: Jan 2008
Reputation:
8
01-13-2008, 11:19 AM
Yes it exists:
GetParameterCount -This will return the total number of columns in the run-time Data Table sheet.
Posts: 106
Threads: 28
Joined: Jan 2008
Reputation:
0
01-14-2008, 02:35 AM
Means there is no such GetColumnCount instead of that there is GetParameterCount ??
Posts: 106
Threads: 28
Joined: Jan 2008
Reputation:
0
03-10-2008, 07:04 PM
Hi Smitha,
Thanks for reply ,columncount property is exist but my question was is getcolumncount property exits or not, i want to count no of column in datatable (global sheet) which property is best?columncount or getparametercount??I hope you get the point.
Thanks again
Posts: 350
Threads: 2
Joined: Mar 2008
Reputation:
0
03-11-2008, 10:02 AM
HI ,
Actually datatable will have maximum limit of 256 columns only(Maximum worksheet size—65,536 rows by 256 columns)
And by the by ,there is no method(i.e getcolumncount) for retrieving the coulmn count of datatable...