lastwarn
Returns last recorded warning message.
Syntax
last_message = lastwarn()
[last_message, last_identifier] = lastwarn()
lastwarn('')
lastwarn(new_message)
lastwarn(new_message, new_identifier)
[last_message, last_identifier] = lastwarn('')
[last_message, last_identifier] = lastwarn(new_message)
[last_message, last_identifier] = lastwarn(new_message, new_identifier)
Output argument
last_message - string: last warning message.
last_identifier - string: identifier.
Description
last_message = lastwarn() returns a string containing the last warning message.
lastwarn('') clears last warning.
Example
See also
History
Version
Description
1.0.0
initial version
Author
Allan CORNET
Last updated