lang • try


TRY Statement

Try to execute a statement, without raising an error.

Use ERROR just after to know if the statement was executed correctly.


' Remove a file even if it does not exist
Try Kill FileName
' Test if it has failed
If Error Then Print "Cannot remove file"

See also