Hi,
We generally have the onMessage triggers of our objects call a onMessage... user command so that we can manage the code for multiple objects in the same user command instead of editing each object's message trigger separately. Currently we are parsing the 3 parameters that you get by calling msgparam(1), etc. into doubles which we then pass on to the user command.
Now when FlexSim supports variants, is using doubles still the way to do it or should one parse the message parameters as variants and pass them on as variants instead when passing them to a user command?
The code below seems to work and so does also using variants with TASKTYPE_SENDMESSAGE.
var test = 5; senddelayedmessage(current, 0, current, test);
Thank you!
Kind regards,
Axel