How can I check if a parameter exists in DataTable or not?
QuickTest Professional (QTP) Questions and Answers
(Continued from previous question...)
How can I check if a parameter exists in DataTable or not?
The best way would be to use the below code:
code:
on error resume next
val=DataTable("ParamName",dtGlobalSheet)
if err.number<> 0 then
'Parameter does not exist
else
'Parameter exists
end if
(Continued on next question...)
Other Interview Questions
|