Hi,

I need help existing this loop. The below code works as I want but I can't get it to exit. What I need to happen is when " Redisplay ? (Y/<N>) :" is received from the host it needs to exit. I can't figure out how to turn the host string into a variable so I can set the loop to exit when it becomes false, or true. Any help would be greatly appreciated! TIA!

Do
.StatusBar = "Waiting for Prompt: CONTINUE ? (<Y>/N)"
.WaitForString LF & "CONTINUE ? (<Y>/N) ", NEVER_TIME_OUT_
, rcAllowKeystrokes
.StatusBar = ""
.Transmit CR
Loop