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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

QUESTION ON COUNTER

Status
Not open for further replies.

IncredibleVolk

Technical User
Apr 2, 2004
67
US
I have a process that employs rget to grab a number off the screen, place that number into an integer, and loops that many number of times. The problem I'm having is that Counter is incrementing twice for each loop as opposed to one time. I tried Counter = Counter + 1 and got the same result.

for Counter = 0 upto Number
strfmt sGrab "%s%d" sLine Counter
rget sGrab
strreplace sGrab "`n" ""
strreplace sGrab "`r" ""

code....
Counter++


 
Nevermind. I guess I don't need to increment when using a for loop.
 
Gotta watch those crazy for loops. They do goofy stuff like that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top