View Full Version : where is the wrong?
nahit
04-27-2007, 11:12 AM
ı want to 20+30+40 with lisbox but ı not understand where is the wrong
plz help
Be sure to use String.ToNumber() when you are getting a numeric value from a label, input, etc...
Not totally sure but I did notice this in your code:
result = Label.GetText("Label1");
is = result + 40
Label.SetText("Label4", is);
should be
result = Label.GetText("Label1");
is = result + 40;
Label.SetText("Label4", is);
Not sure if that is the answer but it is worth a shot. You might need to explain further.
Adam Kapilik
No, ; is optional in Lua.
Label.GetText("Label1") returns a string.
RizlaUK
04-27-2007, 12:33 PM
for clarification
result = Label.GetText( "Label1");
result = String.ToNumber(result);
is = result + 40
Label.SetText( "Label4", is);
output enhanced with AMS Code Pretty (http://www.indigorose.com/forums/showthread.php?t=19409)
nahit
04-29-2007, 07:09 AM
thanks a lot
ı could make
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.