‘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

Unknownthanks Abhikansh..

keep it up!! ðŸ™‚

Dhanraj Goreoutstanding work….keep it up….

AnonymousSuper!!

Anonymousi 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)

Abhikansh Jain@raghav,

plz dont use double qoutes while paasing values in array..

Anonymoussuperb! whatever search here i can get solution here thanks dude

Unknownexcellent

Unknownplz help me… how to capture screen shot during runtime… what is syntax and explain plz

Abhikansh Jain@satish k

plz search CaptureBitmap in qtp help

DeepakGood Job ðŸ™‚