Product Information > JADE Encyclopaedia of Classes – Volume 2 > Chapter 1 - System Classes > sendMsgWithParams

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 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 specify a variable list of dictionary-key parameters of any type that are passed to the method or condition specified in the msg parameter when it is executed. You can:

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.

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