[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: progress bar



On 14 Jun 2002, Chas Owens wrote:

> Following is my solution (note: your example has been edited to my
> style).  There were two problems with your code.  The first was what you
> noticed.  The function called by timeout events must return true if it is
> to continue to exist.  The second was the fact that you should never
> assume that a float will hold exactly the number you put in (ie never say
> == on a float, you should either test a range with a small delta or clip
> it like I did).  Also, always use the strict pragma.

Thanks for the quick reply again.  I added a return and it worked.  Also,
thanks for the tip about the floating point...

-- 
~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~=-., \|/  (___)  \|/ _,.-=~'`^`
                          Brian Medley         @~./'O o`\.~@
"Knowledge is Power" brian medley verizon net /__( \___/ )__\  *PPPFFBT!*
  -- Francis Bacon                               `\__`U_/'
 _,.-=~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~= <____|'  ^^`'~=-.,__,.-=
~`'^`'~=-.,__,.-=~'`^`'~=-.,__,.-=~'`^`'~=-.,__,.-==--^'~=-.,__,.-=~'`^`




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]