Hi Jason, I found the problem. It is yours not Benoit's :-)
txtBaggageWeight is stored wrong value. The propably right sub is following. PUBLIC SUB txtBaggageWeight_Change() update_weight() txtBaggageWeight.text = hBaggageWeight txtBaggageMoment.text = (hBaggageWeight * Val(lblBaggageArm.text)) / 1000 IF hBaggageWeight > 0 THEN butBaggage.background = Color.RGB(0, 255, 0) ELSE butBaggage.background = Color.RGB(234, 234, 234) ENDIF END Best Regards Kari Laine ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user