Hi Pradeep,

Here is the script.

Dim a, temp, i, j, firsthighest, secondhighest, thirdhighest
a = Array(35,44,99,66,98,76)
'Sorting the array in Ascending order
for i=0 to UBound(a)
for j=0 to UBound(a)
if (strcomp(a(i), a(j), 1)<0) then
temp = a(i)
a(i) = a(j)
a(j) = temp
end if
Next
Next

firsthighest = (UBound(a))
msgbox "First highest mark is: "&a(Firsthighest)

secondhighest = (UBound(a)-1)
msgbox "Second highest mark is: "&a(secondhighest)

thirdhighest = (UBound(a)-2)
msgbox "Third highest mark is: "&a(thirdhighest)

Regards,
Jeyaprakash R


On Fri, Jan 24, 2014 at 8:26 AM, Pradeep Reddy <
[email protected]> wrote:

> hi all qtp professionals this is pradeep....pls find out me the answer
>
> --
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to