Yeah, that's it.
Avoid the Do While completely! Which reinforces the stereotypical fear of using Do While... :-)

Mike

-------- Original Message --------
Subject: Re: Unexplained Error 1705 "Access Denied" Errors
From: Vincent Teachout <[email protected]>
To: [email protected]
Date: 7/19/2013 2:38 PM
Don't both of you mean:

for nI = 1 to lnMaxIterations
    ...process..
endfor

?  :-)

Mike Copeland wrote:
Well sure, if you want efficient code...but...well...uh... :-)

Thanks Ted!

Mike

Do While .t.
     lnCounter=lnCounter + 1
     * if we have reached our max try count, bail
     if lnCounter >= lnMaxIterations
         exit
     endif
endd



Do you mean:

  Do While lnCounter < lnMaxIterations
    ... process ...
     lnCounter=lnCounter + 1
enddo



[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to