Hi All,
Here is the code for comparing two arrays. Hope this would help.
For i = 0 To UBound(arr1)
For j = 0 To UBound(arr2)
If arr1(i) = arr2(j) Then
compResult = 1
Exit For
Else
compResult = 0
End If
Next
Next
compResult = CBool(compResult)
If compResult Then
Reporter.ReportEvent micPass, "", ""
Else
Reporter.ReportEvent micFail, "", ""
End If
Regards,
Manish
On Tue, Jul 7, 2009 at 2:47 PM, vasu sree <[email protected]> wrote:
> Hi ,
>
> create two arrays and then pass those values in to two arrays then by using
> for loop it can easily compare the all sets of data.
>
>
> Regards,
> Vasu
>
>
> On Thu, Jul 2, 2009 at 11:44 AM, Judy <[email protected]> wrote:
>
>>
>> How can i compare two rows of datatable in QTP
>>
>>
>>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---