‘This code demonstrate how to find the highest number in a numaric array.
Dim num, i, Length1
Dim num, i, Length1
num=array(34,12,98,43,89,49,56)
Length1 = UBound(num) ‘Find the length of array
For i= 1 to Length1
If (num(i) < num(0)) Then ‘to find lowest number, just change it to >
num(0)=num(i)
End If
Next
MsgBox num(0) ‘Highest Number
thanks Abhikansh..
keep it up!! 🙂
outstanding work….keep it up….
Super!!
i tried to pass numbers(5,10,15) in array to find the biggest number and getting as 5. but it should be 15. pls help me in this.
num=array("5","10","15")
Length1 = UBound(num)
For i= 1 to Length1
If (num(i)>num(0)) Then
num(0)=num(i)
End If
Next
MsgBox num(0)
@raghav,
plz dont use double qoutes while paasing values in array..
superb! whatever search here i can get solution here thanks dude
excellent
plz help me… how to capture screen shot during runtime… what is syntax and explain plz
@satish k
plz search CaptureBitmap in qtp help
Good Job 🙂