question

Walker huang avatar image
0 Likes"
Walker huang asked Walker huang commented

return -1 and eventlisten

2022-04-10-18-07-57-window.pngas the above picture, for the 1st highlight, what it means for " eventlisten"? for the 2d highlight, how to understand " return -1"? hopefully someone helps to clear it, thank you very much

FlexSim 22.1.0
listcodingeventlisten
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ryan Clark avatar image Ryan Clark commented ·

Hi @Walker huang, was Joerg Vogel's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·
Walker huang avatar image Walker huang Ryan Clark commented ·
yeah, thanks. see
0 Likes 0 ·

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Walker huang commented

From command reference

https://docs.flexsim.com/en/22.1/Reference/CodingInFlexSim/CommandReference/Commands.html#eventlisten

return -1 is a function statement preventing FlexSim from creating and dispatching a standard tasksequence.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Walker huang avatar image Walker huang commented ·
thank Joerg. basically understood the return -1.
0 Likes 0 ·