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>yes_no()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
YES_NO()

    YES_NO() displays a box with your message in it, and pauses program
    execution until the user presses either 'Y' or 'N'.  It returns a
    logical value: true if the user pressed 'Y', or false if the user
    pressed 'N'.  The syntax is:

    YES_NO(<message 1> [,<message 2>, <box color>, <text color>])

    Required Parameter

    <message 1> is a character string representing the message you wish
    to display.

    Optional Parameters

    <message 2> is a character string containing an additional message
    to be displayed if you need two lines.  Pass a null string ("") if
    you do not wish to use this parameter.

    <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 magenta.

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

    Sample usage

    IF YES_NO('Reindex files','','W/R','+W/R')
       REINDEX                                
    ENDIF                                     

    kill_it = YES_NO('WARNING: This record will be vaporized', 'Continue')
    IF kill_it                                                            
       DELETE                                                             
       SKIP -1                                                            
    ENDIF                                                                 

    Note that the function automatically adds "? (Y/N)" to your last
    message.

See Also: YES_NO2()

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