question

oleg avatar image
0 Likes"
oleg asked Jeanette F commented

How to find out how many messages have been sent?

How to find out how many messages have been sent?For example in this code

Object current = ownerobject(c);

Object fromObject = param(1);

Variant msgparam1 = param(2);

Variant msgparam2 = param(3);

Variant msgparam3 = param(4);


{ // ************* PickOption Start ************* //

/***popup:CloseOpenPortsByCase*/

/**Close and Open Ports Based on Cases*/


Variant value = /***tag:value*//**/msgparam(1)/**/;


/***tagex:data*/

if (value == /**/1/**/) {

/**/current.input.close()/**/; return 0;

}


if (value == /**/2/**/) {

/**/current.input.open()/**/; return 0;

}

/***/


/***tag:default_value*//**//**/;


} // ******* PickOption End ******* //


FlexSim 24.0.3
message triggersend messagemessages
· 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.

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered oleg commented

This is an on message trigger source code. You can add a template to increment a label at this object.

Edit: You can cut the code lines to increment a label from increment label template and insert it in each code block responsible to send a message.

· 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.