Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do Loop While Question

Status
Not open for further replies.

vzachin

Technical User
Feb 10, 2006
305
US
Hi,
How do I write the following syntax?
I want to write the following:
Do
Loop While Sess0.Screen.GETstring(24, 26, 17) <> "FOUND LAST RECORD" OR
Loop While Sess0.Screen.GETstring(24, 2, 5) <> "ERROR"

In other words, if either one of the conditions is true, I need the loop to end.

thanks

zach
 
Hi,

figured it out:

Loop While Sess0.Screen.GETstring(24, 26, 17) <> "FOUND LAST RECORD" OR Sess0.Screen.GETstring(24, 2, 5) <> "ERROR"

thanks
 



Hi,

"if either one of the conditions is true, I need the loop to end."
Code:
Do

Loop [b]Until[/b] Sess0.Screen.GETstring(24, 26, 17) <> "FOUND LAST RECORD" OR Sess0.Screen.GETstring(24, 2, 5) <> "ERROR"



Skip,

[glasses] [red][/red]
[tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top