[Gambas-user] Stack Overflow
Kari Laine
klaine8 at ...626...
Sat Aug 16 20:10:27 CEST 2008
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
More information about the User
mailing list