What this does is it goes through the array "items" and if in the current element contains what is contained in the variable item, then it parses it down. Now it worked earlier when Item was a variable, but rather a set value, but now it doesn't. Can you spot the error?


VB Code:
  1. Private Function GetItems(Item As String)
  2. Dim items() As String
  3. Dim H As Integer
  4.  
  5. MsgBox Item
  6. Item = Parse(HTML, "' onClick=""", "(you can still haggle to push the price lower!)') ) { return false; }""", True)
  7. items() = Split(Item, vbCrLf)
  8. For H = 0 To UBound(items)
  9.  MsgBox items(H)
  10.  If InStr(1, items(H), Item, vbTextCompare) Then
  11.   URL = Between(items(H), "this.href='", "'; if ( !confirm('Are you sure you wish to purchase")
  12.   MsgBox URL
  13.   Exit Function
  14.  End If
  15. Next H
  16. End Function

Many thanks!