On Tuesday 04 November 2008 11:38:25 am Paul McNett wrote:
> johnf wrote:
> > It took a long time to figure out find the root cause.  Even now I'm
> > unsure that we are going about this correctly.  But this function is
> > required - somehow we need to be able to change the screen view from
> > pounds to kilos.
>
> In my app the user can choose millimeters or inches for unit_of_measure.
> They make the choice from a dropdown list, and immediately all length/width
> fields recalculate and update. I don't recall this being difficult, so if
> you are still struggling getting this updating to happen, perhaps you
> should post some code to show us what you've tried?
>
> The biggest issue for me is the rounding errors that occur when converting
> from 1-31/32 to millimeters, when they only want millimeters to the tenth
> place. Converting back to inches can make it round to 2 or 1-15/16. But I
> don't have any screen update issues like you seem to be struggling with.
>
> Paul

The math is not even an issue.  That is always right.  It's the display that 
is causing us grief.  Could you post your code that changes the screen.  Our 
code is this long winded thing.  I should tell you that our code actually 
does three things. 

1. displays pounds and oz in two text boxes one for pounds and one for oz
2. displays kilos if greater than 1000g
3. displays grams if not a kilo.

Maybe not the code but the approach?



-- 
John Fabiani


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to