Home > lang > try 
 fr de es it nl pl pt pt_BR mk sq ca ar fa vi ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
TRY
Syntax
TRY Statement

Tries to execute a statement, without raising an error.

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

Examples

' Remove a file even if it does not exist
TRY KILL FileName
' Test if it has succeeded
IF ERROR THEN PRINT "Cannot remove file"

See also

Error Management  ERROR