Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
[ FlexSim 22.2.0 ]
Looking for correct syntax to set label value using a variable in place of the label name.
For example..
string mylabelname; mylabelname = "Apples";
This obviously does not work as it creates a label called "mylabelname"...
slot.mylabelname = 5;
Per help, should not access label nodes directly like this..
slot.labels.assert(mylabelname).value = 5;
So how do I do this?
Thanks
Solved! Go to Solution.
