I need to pass a box in processor when my variable is equal 1, I try make the code in event On entry below:
/******************************************************************
Object current = ownerobject(c);
Object item = param(1);
int port = param(2);
int i = Test();
if(i == 1){
current.resume();
current.input.open();
}else{
current.input.close();
}
*******************************************************************/
I am using a user comand called Task(), it return 1 or 0, it is changed in User GUI.
The idea is when the Task() return 1, so we need to pass only one box, when Task() return 0, the processor start wait.
but this code no work, because the command "current.input.close()" stop the app, We need that the app continue running.