There is a close clause, however, it is never being triggered. Is the syntax wrong? It was literally copied and pasted from the sdk example. Partial and full searches are returning event messages as expected.
print "Got Message:"; type(msg)
If (type(msg) = "roSearchScreenEvent") Then
If (msg.isScreenClosed()) Then
print "Search screen closed"
return -1
Else If (msg.isCleared()) Then
print "Search terms cleared"
history.Clear()
Else If (msg.isPartialResult()) Then
print "Partial search: "; msg.GetMessage()
Thanks for the help!
EDIT:
This is within a while loop, just to be clear.
🙂