About List Content - getstat() command...

About List Content - getstat() command...

support5CRPZ
Advocate Advocate
304 Views
2 Replies
Message 1 of 3

About List Content - getstat() command...

support5CRPZ
Advocate
Advocate

[ FlexSim 17.0.0 ]

I want to get the Entry Content of List.

So I searched the topic in this Q&A forum and found getstat() command of @Matthew Gillespie and @anthony.johnson and @Matt Long.

But the getstat(globallist("List1"), "Content", STAT_CURRENT, partitionID) do not get any return value.

here1

email ID : support@flexsim.co.kr & support@simflex.co.kr
Accepted solutions (1)
305 Views
2 Replies
Replies (2)
Message 2 of 3

matt_long
Not applicable
Accepted solution

The stat name you're looking for is PartitionContent. So the code should read:

getstat(globallist("List1"), "PartitionContent", STAT_CURRENT, partitionID);

The Content stat ignores the partitionID parameter and gets the value from the list as a whole.

Message 3 of 3

support5CRPZ
Advocate
Advocate

Thanks. That's what I want.

I used it in the model of my question -https://answers.flexsim.com/questions/34023/about-rotary-rack-level-control-using-process-flow.html.

email ID : support@flexsim.co.kr & support@simflex.co.kr
0 Likes