Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
[ FlexSim 17.0.0 ]
I'm trying to assign a new name to an Object.
I used this syntax but didn't work:
Object source = model().find("source");
source.name = "new name";
So I did a cast to treenode:
Object source = model().find("source");
source.as(treenode).name = "new name";
This works but I read in the manual that the Object should have all the functionality of a treenode.
Is it correct or is something missing?
Solved! Go to Solution.
