How to return a value from a fn, if it has more than one value
how to return
Answer Posted / bantanahal haribabu
Dim odd()
cnt=0
Function oddnum(srange,erange)
For i=srange to erange
If i mod 2<>0 Then
ReDim preserve odd(cnt)
odd(cnt)=i
cnt =cnt+1
End If
oddnum=odd
Next
End Function
var=oddnum(1,20)
msgbox isarray(var)
For i=lbound(var) to ubound(var)
print var(i)
Next
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Explain object spy in qtp.
What is the file extension of the code file in qtp?
How can I change object description or check point values in qtp?
What are the different types of recording modes in qtp? Which will be used when?
what is the difference btn risks & Therads in the Test plan documentation?
What is checkpoints for quicktest professional (qtp)?
how can we preform retesting(DATA driven test) using function please gine the code for loginpage
How can i initiate the objects to find uniquely in OR
Without integrating QC/Testdirector with QTP, is it possible to keep track of the defects?If yes how? How to export QTP results to an excel sheet?
Explain how qtp identifies object?
What is the quicktest professional (qtp) testing process?
RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?
if our qtp vb Script may be Currepted then What we want do?
Have you faced any problems with object repository?
How can you write the scripts that operate on different objects depending on run-time information?