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 about Test Fusion Report of QTP?
assume i have few url link how will i dynamically call then using descriptive programming?
What processes will be required to manage updates to the web site's content, and what are the requirements for maintaining, tracking, and controlling page content, graphics, links, etc.?
What is the difference between run time object and test object?
i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?
Can I change properties of a test object?
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?
In qtp, explain what is crypt object
How to handle Java tree in QTP?
By using QTP can we record any log files written by the application which is in execution?
Is qtp supports uni-code?
In qtp, how you can remove the spaces from string?
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
What are table and db checkpoints?
what type of framework u r using in ur organization