New to programming lua, need some basic help with passing a parm to a function,
trying to set the JogRatePercent by calling a function and passing the float value i want to set in the JogRatePercent.
here is what i have which is not working.
any help would be appreciated.
function JogRatePercent(percent) --This function sets the jog rate
wx.wxMessageBox(percent)
scr.SetProperty("droJogRate", "Value", 'percent')
end
--------------------------------------------------------------------------------------
--the code below works but without passing the value to the function.
function JogRate1Percent() --This function sets the jog rate to 1 %
scr.SetProperty("droJogRate", "Value", "1.0")
end
JogRate1Percent()