PPWIZARD Manual
[Bottom][Contents][Search][Prev]: #evaluate[+][Next]: #if

#Error

A #Error command is used to abort processing. You would probably have extracted information (maybe from an environment variable) and found that all is not right. This command allows you to halt processing and display an error to explain the problem.

The #Warning command is similar but does not halt processing.

Syntax

    [WhiteSpace]#Error  [']ErrorMessage[']
    

The "ErrorMessage" specifies the text to be displayed.

Example

    #if GetEnv('FRED') <> 1 & GetEnv('FRED') <> 2
        #Error "Invalid value for variable 'FRED'"
    #endif
    


[Top][Contents][Search][Prev]: #evaluate[+][Next]: #if

PPWIZARD Manual
My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Tuesday January 02 2001 at 7:37am