TRY is used to prevent operations that may likely fail to cause a program error.
Categoryname
TRY statement
staement - statement to execute despite the chance that it may fail
This method has no refinements
TRY is used to prevent operations that may likely fail to cause a program error. For example opening a file can fail and instead of your program breaking, you want to handle the exception gracefully.
Example of TRY when reading a header file
header-file= ./myheader.txt
Either headerfile= try open header-file [
write/line "Loading header information"
...
close headerfile
][
write/line "Not able to open and read header information"
bye
]
N.A.