If "i" is an integer and theCurrentSubjectList.count is an integer, with the "count" 
being higher than i, your division will result in a zero.

2 / 4 = 0
2.0 / 4 = 0.5

Am I barking up the right tree here?

Cheers,
Tom

> -----Original Message-----
> From: Bill Numerick [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 26, 2001 12:33 PM
> To: [EMAIL PROTECTED]
> Subject: <lingo-l>What do i need to fix to make my load bar work?
> 
> 
> Just trying to get a simple loading bar to work.  Works when 
> it i is equal 
> to 1 but otherwise just stays at zero.  I tried adjusting the 
> floatprecision 
> but then agian maybe i did it wrong ;).
> 
> sprite(38).width = (pEndRightSide - pStartRightSide) * (i / 
> theCurrentSubjectList.count)
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com
> 
> 
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
> email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo.  Thanks!]
> 

[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to