Micro Focus QTP (UFT) Forums
does GetcolumnCount property Exist? - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: does GetcolumnCount property Exist? (/Thread-does-GetcolumnCount-property-Exist)



does GetcolumnCount property Exist? - newqtp - 01-13-2008

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.


RE: does GetcolumnCount property Exist? - Ankur - 01-13-2008

Yes it exists:
GetParameterCount -This will return the total number of columns in the run-time Data Table sheet.


RE: does GetcolumnCount property Exist? - newqtp - 01-14-2008

Means there is no such GetColumnCount instead of that there is GetParameterCount ??


RE: does GetcolumnCount property Exist? - Ankur - 01-14-2008

Yes!


RE: does GetcolumnCount property Exist? - SmithaQTP - 03-07-2008

Yes getcolumncount exist

ex:
Code:
Browser("Browser").Page("Page").WebTable("acura").ColumnCount(1)


here it will fetch the no of column present in first row of acura webtable


RE: does GetcolumnCount property Exist? - newqtp - 03-10-2008

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


RE: does GetcolumnCount property Exist? - sreekanth chilam - 03-11-2008

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...