| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== ERROR (return error message) ====== | [[erase clear screen control and use variables .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[errorcode return error code number .htm|{{btn_next_n.gif|Next page}}]] | | || **ERROR( )** {{blk2blue.jpg|blk2blue.jpg}} The **ERROR** procedure returns a string containing a description of any error that was posted. If no error was posted, ERROR returns an empty string. You should interrogate ERROR immediately after the statement which you suspect may post an error because processing any other statement which //could //post an error will clear the internal errorcode. | **Return Data Type:** | STRING | **Example:** **PUT(NameQueue)                          !Write the record** **IF ****ERROR****() = 'Queue Entry Not Found'    !If not found** ** ADD(NameQueue)                         !add new entry** **  IF ERRORCODE()                        !Check for unexpected error** **   STOP(ERROR())** **  END** **END** **See Also:** [[errorcode return error code number .htm|ERRORCODE]] [[errorfile return error filename .htm|ERRORFILE]] [[fileerror return file driver error message .htm|FILEERROR]] [[fileerrorcode return file driver error code number .htm|FILEERRORCODE]] [[poperrors return error information .htm|POPERRORS]] [[pusherrors write error information .htm|PUSHERRORS]] [[trappable run time errors.htm|Trappable Run Time Errors]]