hi all
can anyone explain how to write the code for finding the
mandatory columns in table which are having (red*)
(red Astrik)



hi all can anyone explain how to write the code for finding the mandatory columns in table which..

Answer / Balbeer Singh

"To find mandatory columns in a QTP object repository that have a red asterisk (*), you can use the following VBScript code:nnFunction MandatoryColumns(objTable)nDim objCol, arrMandatoryColumnsnarrMandatoryColumns = Array()nFor Each objCol In objTable.ColumnsnIf RegExMatch(objCol.Title, "^**")nthen arrMandatoryColumns.Push objCol.NamenNext objColnReturn arrMandatoryColumnsnEnd Function"

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More QTP Interview Questions

How to use transactions in qtp?

1 Answers  


give one example where you have used regular expression?

6 Answers   Ordain Solutions,


Maximum synchronizing time out in QTP

3 Answers   Kanbay,


is it possible to change the date format like MM/DD/YY into DD/MM?YY through script in QTP

5 Answers   IBM,


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?

5 Answers   Syntel,


Is it possible to run qtp scripts in Test Director(Scripts are uploaded in Test director)???and also how to see the test results in test director???

1 Answers  


How to find duplicates in an array and remove them efficiently?

2 Answers  


1.how can we report the QTP test result in a different excel sheet 2.

3 Answers   Aurigo,


Can u explain about QTP framework

10 Answers   ACS,


What are the steps involved in the recovery scenario wizard?

1 Answers  


How to capture a window in qtp or how to take snapshot of any window while writing script in qtp

3 Answers  


How can we write script for a .net application in QTP? Can we use VB Script for .net application.

1 Answers  


Categories