Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
does GetcolumnCount property Exist?
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
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.
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
Yes it exists:
GetParameterCount -This will return the total number of columns in the run-time Data Table sheet.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
Means there is no such GetColumnCount instead of that there is GetParameterCount ??
Reply
#4
Solved: 11 Years, 4 Months, 3 Weeks ago
Yes!
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#5
Solved: 11 Years, 4 Months, 3 Weeks ago
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
Reply
#6
Solved: 11 Years, 4 Months, 3 Weeks ago
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
Reply
#7
Solved: 11 Years, 4 Months, 3 Weeks ago
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...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  General run error when Exist fails msacks 1 1,899 02-08-2019, 02:12 AM
Last Post: Ankur
  [UFT 12.52/VBScript] Test object exist, is visible and enabled before take an action sparkwanted 0 3,691 02-07-2017, 12:28 AM
Last Post: sparkwanted
  how to find Excel file exist or not in vbscript code sree.85 3 11,331 08-22-2013, 11:42 AM
Last Post: akhandesh
  Remote server machine does not exist eroshan 5 14,309 05-06-2013, 06:03 PM
Last Post: Saket
  If page does not exist - skip go to another action janriis 4 4,184 10-12-2010, 11:25 AM
Last Post: Imtiaz-QA

Forum Jump:


Users browsing this thread: 1 Guest(s)