mensagens de aviso
warning('string') warning(string_matrix) warning('off') warning('on') warning('stop') mode = warning('query')
Imprime o string 'string'
em uma mensagem de aviso
warning(string_matrix)
prints each element of the matrix
string_matrix
in a warning message.
'on'
habilita mensagens de aviso.
Warning messages do not interrupt script execution.
'off'
desabilita mensagens de aviso.
'query'
retorna o estado 'on'
ou 'off'
.
warning("on")
, warning("off")
and
warning("stop")
also affect hard-coded functions issuing warnings.
warning_prev = warning("query"); // remembering the initial warning status warning('on') warning('este é um aviso') warning('off') warning('este é um aviso') warning('query') warning('on') // Example with a localized message warning(msprintf(gettext("%s: Wrong number of input argument: %d expected.\n"),"myFunction",2)); // Setting warning stop warning("stop") try warning("this is a warning"); catch lasterror() // Warning message is considered an error end warning(warning_prev); // restoring the initial warning status | ![]() | ![]() |
Version | Description |
6.0 | "stop" option added. |