Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

observer method

Creator
Creator

Hello,

 

i want to create an observer method like this:

is
do
if
    Einzelstation_1.störungen.Basisinspektion.gestört and Arbeitsplatz_Einrichter1.belegt
    then .eigeneBausteine.ServiceTechniker:1.geheZu(Arbeitsplatz_ServiceTechniker);
end;
end;

 

So when I use this method, there is an error like: incorrect number of parametes: 1 hand over (boolean), 0 expected. Can anyone help me,please?

 

 

1 REPLY 1

Re: observer method

Phenom
Phenom

I can only repeat , what the message has already highlighted.

 

There are parameter(s) missing in your method.

 

So when the method is called by the observer this message appears.

 

Now copy your original method ( to backup the method code)

 

and then add  the original method again to your singleProc observer

 

The method should then be reformatted with the right number of parameters

 

overwritting the original method code.

 

Now copy the backuped code (w/o the 1. line with missing parameters from your backup)

 

into the reformatted observer method.