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
What is TOM in QTP?
Can we run test with out adding object in object repository? How it is possible?
I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",
Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints
what is defenetion of kiran can u tell me plz CVS, SVN
What are the technologies supported by qtp?
what is the difference between the modular framework and datadriven frame work
Where is the Bitmap checkpoint information stored?
Which features or drawbacks of QTP lead to the upgrade for a newer version?
What is a recovery scenario?
What is the difference between run time object and test object in QTP?
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
What are the five challenges you faced in QTP?
Explain about Test Fusion Report of QTP?
how to use the QTP choose the data from oracle? e.g. i input the identity card NO. this will be add new record in the database ,and now i want get this record's prime key.