i'm a newbie... i would like to know how i can for example take the number value of a gadget and another gadget multiply them (forexample) and put the results in a third gadgettext......
I thank you a lot..in advance..Lestroso



Code: Select all
SetGadgetText(3, Str(Val(GetGadgetText(2))*Val(GetGadgetText(1))))
Code: Select all
SetGadgetText(3, Str(Val(GetGadgetText(2))/1
Code: Select all
SetGadgetText(3, roundup (Str(Val(1/GetGadgetText(2))/Val(GetGadgetText(1)*Val(GetGadgetText(4)))))-0,5
You can't divide like that: SetGadgetText(...)/1LESTROSO wrote:..
i need to divide like below a gadget /1 but this don't work......Code: Select all
SetGadgetText(3, Str(Val(GetGadgetText(2))/1
And an additional remark:
Code: Select all
a = Val(GetGadgetText(1))
b = Val(GetGadgetText(2))
c = (a + b) * 27
SetGadgetText(3, Str(c))
Code: Select all
TOT1= (Round((1/B4/D6*C1)-0,5),#PB_Round_Up))
Code: Select all
TOT1.f = Round(1 / B4 / D6 * C1 - 0.5, #PB_Round_Up)