Hvis result kan indeholdet noget andet som før vist: result = "NOT FOUND bladladfknakdf kdjhfakj"
Så prøv med dette:
if inStr(1, "No entries found for the selected source",result,1)>0 OR _ inStr(1, "No match for", result, 1) > 0 OR _ inStr(1, "NOT FOUND", result, 1) > 0 OR _ inStr(1, "No data found", result, 1) > 0 then 'result indeholdt en af de 4 ting
<% Dim i Dim arrFindText arrFindText = Array("No entries found for the selected source", "No match for", "NOT FOUND", "No data found")
For i = 0 To UBound(arrFindText) If InStr(result, arrFindText(i)) > 0 Then Response.Write arrFindText(i) & "<BR>" End If Next %>
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.