G
Guest
hi,
i have created a calculator for weight watchers (a slimming club in london).
it calculates weight.
the form has two textboxes in it and a label and a button. when you click
the button it works out the value of the second textbox (weight after) minus
that of the first one (weight before). the label then says "You gained " and
then the answer. but if you lost weight, it says you gained -15 Kg for
example. how do i make my app realise that it is a negative number and make
the label say "you lost ". dont worry about the maths code. i csn do that.
i hope you understood the question. if not, tell me!
gotta go!
i have created a calculator for weight watchers (a slimming club in london).
it calculates weight.
the form has two textboxes in it and a label and a button. when you click
the button it works out the value of the second textbox (weight after) minus
that of the first one (weight before). the label then says "You gained " and
then the answer. but if you lost weight, it says you gained -15 Kg for
example. how do i make my app realise that it is a negative number and make
the label say "you lost ". dont worry about the maths code. i csn do that.
i hope you understood the question. if not, tell me!
gotta go!