[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
##############################################################################
###+-------------+############################################################
#+-| I_MESSAGE() |------------------------------+#############################
#| +-------------+ Returns a message associated |#############################
#| with a runtime error number |#############################
#+----------------------------------------------+#############################
##############################################################################
##############################################################################
#+--| Summary |---------------+###############################################
#| #INCLUDE error.hdr |###############################################
#+----------------------------+###############################################
##############################################################################
##############################################################################
#+--| Syntax |---------------------------------+##############################
#| FUNCTION CHAR i_message PROTOTYPE |##############################
#| PARAMETERS VALUE UINT error_number |##############################
#+---------------------------------------------+##############################
##############################################################################
##############################################################################
#########+---| Description |----------------------------------------+#########
#########| The i_message() function returns the message associated |#########
#########| with the given runtime error_number. If a runtime error |#########
#########| occurs and an error procedure has not been set through |#########
#########| the ON ERROR command, then the runtime error message is |#########
#########| printed on the screen. |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 1 |-------------------------------------------+#########
#########| * file:\force\sample\perror.prg |#########
#########| * (** source code included with compiler **). |#########
#########| * This program prints a runtime error message for |#########
#########| * diagnostic purposes. To use: perror <number> |#########
#########| * example: perror 259 |#########
#########| |#########
#########| #INCLUDE string.hdr |#########
#########| #INCLUDE error.hdr |#########
#########| |#########
#########| PROCEDURE force_main |#########
#########| PARAMETERS CHAR(127) cmd_line |#########
#########| |#########
#########| ? i_message( i_val( cmd_line ) ) |#########
#########| |#########
#########| ENDPRO |#########
#########+----------------------------------------------------------+#########
##############################################################################
See Also:
critical
e_message()
ON ERROR
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson