> Why do you need  a script which has so much flexibility in the way 
> the numbers are calculated and incremented.

I figured while we're building a counting script, might as well make it as
capable as possible. But, we can restrict some of it, if necessary :)

> > ;!!!!First question, this check is here so that if someone enters 
> start, and
> > end numbers that will result in an infinite loop (using a positive 
> number:
> > start 1 end 10) it will error, and avoid a loop. However if start 
> numbers
> > are -1, or another unusual start number, this check is no longer 
> valid. Is
> > there a formula here that we can use that will be a loop check no 
> matter
> > what is entered as start, end, multiplier, and increment amount?
> 
> If you did not allow people to multiply by a negative number, this 
> would be easier to figure out.  Is there a reason you need to allow 
> for a negative increment with the operator is *?

That would be fine, we could put a check (and note for the * multiplier) to
reject a negative incrementer if multiplier is *.

> > ;!!!!!!Again here as the test to see when to stop the For() loop: 
> sjcounter
> > <= sjcounterend. This check is only valid, if start and end numbers 
> are
> > positive, and first is less than last (start 1 end 10). 
> 
> If you could precalculate the input, you could control the loop by a 
> counter up to this number.

So what would you do, after getting the input but before the for() with the
win.keys() you'd test-run the math on another for loop, and make sure it
ends? When would you stop the loop, and assume it would be a success?
500-1000 loops? Any elegant code would be appreciated =)

Thanks Bruce!
David Troesch  |  Atlanta, GA  |  ICQ# 2333123
Life is short. Fly fast.   RIP Sergio: 12/03
Funstuff: Back up my hard disk? I can't find the reverse switch!



------------------------ Yahoo! Groups Sponsor --------------------~--> 
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to