# Thread: Is there any similar function in QTP as Max or Min

1. ## Is there any similar function in QTP as Max or Min

Does anyone know if there is any similar funciton in QTP as Max or Min funtion in QTP

2. ## Re: Is there any similar function in QTP as Max or

Max/Min of what?

3. ## Re: Is there any similar function in QTP as Max or

Function to retreive the max or Min value as we have in Silk

4. ## Re: Is there any similar function in QTP as Max or

you mean finding max and min values in an array?
or just from 2 values?

You need to be more specific with your explnation when asking any question. Many people here doesn't know how silk test works.

5. ## Re: Is there any similar function in QTP as Max or

finding max and min from the two list of arrays.
Thanks!

6. ## Re: Is there any similar function in QTP as Max or

Are they 2 different arrays or one arry with two elements?

Can you please post silk test sample code here?
It will help us understanding your question.

7. ## Re: Is there any similar function in QTP as Max or

arrList1 = Array("A", "B", "C")
arrList2 = Array("C", "D")

and I would want to do something like
Print(Max(arrList1, arrList2))

8. ## Re: Is there any similar function in QTP as Max or

<font class="small">Code:</font><hr /><pre> arrList1 = Array("A", "B", "C")
arrList2 = Array("C", "D")

If Ubound(arrList1) = Ubound(arrList2) Then
Msgbox "Both arrays are equal"
ElseIf Ubound(arrList1) &gt; Ubound(arrList2) Then
Msgbox "arrList1 is big"
ElseIf Ubound(arrList1) &lt; Ubound(arrList2) Then
Msgbox "arrList2 is big"
End If </pre><hr />

9. ## Re: Is there any similar function in QTP as Max or

Thanks a lot!

10. ## Re: Is there any similar function in QTP as Max or

One more way of doing that.

arrList1 = Array("A", "B", "C")
arrList2 = Array("C", "D")

Msgbox StrComp(Ubound(arrList1),Ubound(arrList2))

Page 1 of 2 12 Last

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.