I want to check in the data table(Globalsheet) column exist
or not through script .If column not exist only proceeded
to next step Pls tell me how to proceeded?

Answer Posted / garywu

Public Function existColumn(byval Sheetname,byval ColumnNum)
paramcount = DataTable.GetSheet
(Sheetname).GetParameterCount
If ColumnNum>paramcount then
existColumn=False
else
existColumn=True
End If
End Function

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between modular framework & datadriven framework

1816


In an interview, what r the general questions asked in QTP? pls give me anwser to this question?

1641


How to save your test using quicktest professional?

775


How many tabs are available to view your test in a test pane and what are they?

832


Diff b/w Health care domain and Banking Domain?

4436


How you can find length of array in qtp?

775


I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that

1636


How to handle Java tree in QTP?

1028


Explain the differences between table and db checkpoints?

773


how do i know how to use tools

1696


Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?

797


What is optional step in qtp? How you can add optional step in qtp?

768


What is clean sweep?

1614


what is command for executing files?

1737


Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?

849