sendMsgWithParams

sendMsgWithParams(msg:       String;
                  paramList: ParamListType): Any;

The sendMsgWithParams method of the Object class sends the specified message (method or condition) containing a variable list of parameters to the receiver.

The return type of the sendMsgWithParams method is to allow for an optional return value from the method being called. If the called method returns a value, the Any result must be cast to the appropriate type, to access that result.

The msg parameter must be the name of a valid method or condition, which is executed when the sendMsgWithParams method is called.

Use the paramList parameter to pass one or more parameters to the method being called.

If the number or type of the actual parameters passed to a method or condition by a parameter list does not correspond exactly to the formal parameter list declaration, an exception or an unpredictable result can occur, as the compiler is unable to perform any type checking on the values that are passed to a parameter list.

The following code fragment is an example of the sendMsgWithParams method.

retCode := self.sendMsgWithParams(meth, param1, param2).Integer;

For details about the ParamListType pseudo type, see "ParamListType" under "Pseudo Types", in Chapter 1 of the JADE Developer’s Reference. See also: