I am having a weird issue with an assigned parameter. This is my code:
I have the first line in because the first section of code doesn't seem to function without it. However, I recently added the elseif statement in line 19, and I think it is causing problems with the first line.
The error I am getting is this: Incompatible types of argument1: expecting integer, passed object.
I don't understand where an object is being passed.
Please help, sorry about how complicated the code is with .succ's, thanks in advance.
Solved! Go to Solution.
Why do you think line 19 is causing the problems ?
it seems you defined the (first) parameter ( exitForNextEnteringMU) as integer
and passed an object to the method.
sorry no idea, the parameter type is right, it is the number of the entrance
I get such a failure, iif I return the entrance number
Ok let me ask you a related question then. I gave up on the code that I posted earlier after messing with it for quite a while and decied to try to rebuild something else.
I have already run into an issue with the new code though.
I can't figure out why this isn't working, but I'm hoping it is just a hole in my knowledge of SimTalk. What is wrong with the code that is noted as an error?
It reads: If .Models.Reynosa.AB1.numMU + .Models.Reynosa.Line11.numMU + .Models.Reynosa.PSTOP_AB1.numMU < 2
the failure means, that at the call of the method a parameter is passed (integer), but you dont have defined one
insert into the first line