Micro Focus QTP (UFT) Forums
outlook.application problem - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: outlook.application problem (/Thread-outlook-application-problem)



outlook.application problem - Shina35 - 09-18-2008

Hi,
I still have the same problem
this is my cose:
Code:
End If
For i=1 to MyFolder4.Items.Count
If myItems(i).Subject = "anything" Then

.....
Code:
End if
'Delete message with subject not equal to "[Error]" message
If myItems(i).Subject <> "[Error]" Then
myItems(i).delete
end if
myItems.GetNext
Next

the problem is that each time i run the script i get an
error message "array is out of bound"
please help me solving this problem
thanks


RE: outlook.application problem - Ankur - 09-29-2008

where have you defined the array?