st = 0
st = CheckExistsWindow("Clarity1", False, "")
Loop while st = 0
I want to loop until the window's name is Clarity1
Success is the ability to go from one failure to another with no loss of enthusiasm.
~ Winston Churchill ~
The CheckExistsWindow statement does not return a value so that wouldn't work. If the window isn't found it will issue a warning when you use "False" but doesn't return a value that you can check. It would be good if you could get the window name property but I don't know how you would do that.
You might want to try the Seapine tech support to see if they have a suggestion on how to handle this. They are pretty good at finding solutions to problems such as yours.