sendMsg

sendMsg(message: String): Any;

The sendMsg method of the Object class sends the specified message (method or condition) to the receiver.

The return type of the sendMsg 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 message parameter must be the name of a valid method or condition, which is executed when the sendMsg method is called. See also the Object class sendMsgWithParams method.

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

retCode:=self.sendMsg(meth).Integer;