Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Please help - how can I determine if a column exists?
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
yes CC it is indeed simple... try this and you would be able to do it by yourself.

1) Get the count of all columns using .GetParameterCount

2) Loop through all the columns till you get the column you need. ok i would give a hint....
Use this (datatable.value ( i,SheetName))=ColName where:
  • i is the index for for-loop
  • SheetName is the name of sheet, where you want to find the required column and
  • ColName is the name of required column

Let us know how it goes
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Messages In This Thread
RE: Please help - how can I determine if a column exists? - by Ankur - 02-28-2008, 10:30 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  to count the number of used rows in a particular column sujaravi123 3 11,229 06-12-2013, 03:17 PM
Last Post: sujaravi123
  How to recognize table row and column siwani 4 5,143 04-05-2012, 05:06 PM
Last Post: verma.vik6
  text exists or not sujaravi123 3 5,300 11-09-2011, 11:57 PM
Last Post: as_srini
  Reading xls by column name anbarasu 2 3,295 04-05-2010, 12:26 PM
Last Post: Saket
  how to check if selection in menu exists.. Anil Kumar 1 3,583 10-15-2009, 08:45 PM
Last Post: jsknight1969

Forum Jump:


Users browsing this thread: 2 Guest(s)