Programming Guide



sm_rw_error_message

Returns the last error message generated by report processing

char *sm_rw_error_message(void);

Returns

Description

sm_rw_error_message returns the last error message returned by a report that is undergoing execution. The character string that this function returns can be used in one of the Panther message commands or functions, such as the msg command or sm_message_box. If report processing is error-free, this function returns NULL.

You can use this function to test report processing within a Panther application—for example, through sm_rw_runreport or sm_rw_play_metafile.