I am trying to check if a sting has a space in it. The following is not working for me.
if (skpwords.contains(lcase(query)) And Mid(query, InStrRev(query, \"
You could split the array using Ubound and check the length of the array to determine if there are spaces
VBS Example:
hi = "What is up" spaces = Ubound(Split(hi, " ")) if (spaces = 0) then Wscript.Echo "No Spaces" else Wscript.Echo "There are spaces" end if