Loop until strText is empty?
Moderators: JRL, Dorian (MJT support)
Loop until strText is empty?
Is there a loop that will continue until strText is empty?
- Dorian (MJT support)
- Automation Wizard
- Posts: 1414
- Joined: Sun Nov 03, 2002 3:19 am
Re: Loop until strText is empty?
This would keep looping indefinitely while strText contained a value. You'd put whatever strText code you're using inside the loop. For this example I used OCRArea.
Another way could be to loop while the length of strText >0
Code: Select all
Let>strText=hello
while>strText<>
//Example code
OCRArea>1220,655,1789,839,strText
endwhile
Code: Select all
Let>strText=hello
len>strText,lenstrText
while>lenstrText>0
//Example code
OCRArea>1220,655,1789,839,strText
len>strText,lenstrText
endwhile