PDA

View Full Version : Function into a function


PWD
03-24-2009, 05:19 AM
Hi all,

is it possible to place a function into another?
Like this below:

alfa = math.round((math.atan(triZ/dpiant)*180/3.14), 1)

There must be a problem, because compiler returns an error.


Thank you
PWD

reteset
03-24-2009, 07:47 AM
there is no round function in native Lua

you should use AMS's that starts with capital

alfa = Math.Round((math.atan(triZ/dpiant)*180/3.14), 1);

PWD
03-24-2009, 10:28 AM
Thank you very much reteset...

How about focus for input boxes?
Is there a way to set focus (blue selected field) when use tab button o click in with the mouse?
Using Input.SetSelection but I think something goes wrong...

Thank you