1
Mach4 General Discussion / Re: How to pass parameter to macro through Mach4 MDI?
« on: July 17, 2019, 05:56:40 PM »
Thanks a lot, that was really helpful!
So basically I need to pass a,b,c,d.... etc. a long with the a value, like: m101 a666
And then in my function I can read that A parameter by doing:
mc.mcCntlGetLocalVar(inst, hParam, mc.SV_A)
Getting passed value b would then be mc.SV_B etc.
Is that correctly understood?
And a bonus question: it's not possible to pass a string only to the function?
So basically I need to pass a,b,c,d.... etc. a long with the a value, like: m101 a666
And then in my function I can read that A parameter by doing:
mc.mcCntlGetLocalVar(inst, hParam, mc.SV_A)
Getting passed value b would then be mc.SV_B etc.
Is that correctly understood?
And a bonus question: it's not possible to pass a string only to the function?