You can use both LBound and UBound:

Dim Counter
For Counter = LBound(myArray) to UBound(myArray)
    If myArray(counter).Exist Then
        Reporter.ReportEvent micPass, "Link ", "Exists"
    Else
        Reporter.ReportEvent micFail, "Link ", "does not exist"
    End If
Next


On Monday, May 20, 2013 2:12:35 PM UTC-4, Jon wrote:
>
> Dim Counter
>> For Counter = 0 to 41
>> If myArray(counter).Exist Then
>> Reporter.ReportEvent micPass, "Link ", "Exists"
>> Else
>> Reporter.ReportEvent micFail, "Link ", "does not exist"
>> End If
>> Next
>
>
> links through without any errors. I tried to replace "41" in the counter 
> with "UBound(myarray)" but there was always an error at the end. 
>
>
> thanks for all the help. On to the next issue! (in another topic).
>

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