mvBASIC supports an optional ON ERROR clause for all WRITE statements. This clause is taken if the statement cannot be executed, for example, if the file is update protected.
See Also
Statement and Function Reference