Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Grumpfish Library 3.2 - <b>err_msg()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ERR_MSG()

    ERR_MSG() displays a box with your error message in it, along with
    several choice beeps, and pauses program execution until you press
    any key.  The beeps can be squelched if you have qualms about
    insulting your end users.  Syntax is as follows:

    ERR_MSG(<message> [, <box color>, <text color>, <sound>])

    Required Parameter

    <message> is a character string representing the message you wish to
    display (not too insulting, please!).

    Optional Parameters

    <box color> is a character string representing the color in which to
    draw the box.  Pass a null string ("") if you do not wish to use
    this parameter.  The default box color is white on red.

    <text color> is a character string representing the color in which
    to display the text.  The default text color is bright white on red.

    <sound> is a logical value that can be used to prevent ERR_MSG()
    from emitting its annoying beeps.  Pass False (.F.) if you would
    prefer silence (the default is on, or True).

    Return Value

    Zilch

    Sample usage

    SEEK mVAR                                  
    IF .NOT. FOUND()                           
       ERR_MSG('Record not found','W/B','+W/B')
    ENDIF                                      

   Clipper 5.0 Notes

   ERR_MSG() can display more than one message. To make use of this
   feature, pass an array of character strings as the <message>
   parameter. The following line demonstrates this usage.

   err_msg( {"A major catastrophe has occurred", "Call your programmer"} )

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson