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
Approach for Installation,comaptibility,system testing
What are the different types of functions available in qtp and explain ?
How to remove the associated function library?
Sql questions to find second max salary and how to use joins
how could i download qtp in which i get add-in support for 'oracle' is there any way to get it? i finding but not getting pls help me out :)
What is recovery scenario manager? When you go for recovery scenario manager?
If there is a change in the object type eg: A button is changed as link, 1. How to edit that in the shared object repository. 2.What options are available to edit the object within shared object repository other than copy from loca; 3.What would be the effect of the change in Coded Scripts within QTP and Functions stored in .vbs file which are loaded and used in QTP
what frame work you are following?
how can i pass a "cript"as a parameter in to a function
how many maximum number of virtual users we can create?
Tell me about qtp?
What are the automation metrice in your project?
How to find Operating system information using QTP script?
How is UFT 11.5 version different from UFT 12.0?
To which environments does quicktest professional supports?