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 ******* //