There are three builtin functions to build a reply message to the caller, is used to return message, any return message args previously set with set_return_data ().
Set_return_data can be used in two ways - set_return_data (data) appends the data which can be any type to the end of the message and set_return_data (int index, data) which places the data at the index in the message
{// NOTE: E_INVALID is an enumset_error (E_INVALID);set_return_data ("Illegal operation requested");set_return_data ("\"Fred\" is not a valid main course");}
Where can I find Spel functions documentation?
CA SDM::.SPEL::. set_error(int error)