Currently I have the challenge to get the child id of frame objects (networks). I already know how to use childno when I already know the id or how to read the id for MUs but how can I read it like this:
current.StreamNo := 100 + current.id (or current.childno);
In case that there is no way: What is the adress of the table where the instances for a class are managed?
Of course it is possible to create a table manually and achieve this functionality but there must be a more elegant way I simply don't get.
Thanks in advance.
Solved! Go to Solution.
The class of the frame "knows" everything about their children, so you could use a simple method to get the child-number of an object:
for i:=1 to cl.class.numChildren loop
if cl.class.childNo(i) = cl then
if the method name is e.g. getOwnChildno our call would look like:
current.StreamNo := 100 + getOwnChildno(current);
freelance simulation specialist