User Tools

Site Tools


en:try

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:try [2016/08/12 13:00]
admin
en:try [2020/02/28 10:46]
Line 1: Line 1:
-===== Try / Catch / EndTry (Statement) ===== 
-==== Format ==== 
-**try**\\ 
-(tab)[[programsyntax|statement(s)]]\\ 
-**catch**\\ 
-(tab)[[programsyntax|statement(s)]]\\ 
-**end try** 
-==== Description ==== 
-Execute the [[programsyntax|statement(s)]] inside the try.  If a runtime error occurs jump to the code in the catch. 
- 
-==== Example ==== 
-<code> 
-for t = -1 to 1 
-   try 
-      print "9/"+t + "= " + (9/t) 
-   catch 
-      print "division by zero" 
-   end try 
-next t 
-</code> 
-will display 
-<code> 
-9/-1= -9 
-division by zero 
-9/1= 9 
-</code> 
-==== See Also ==== 
-{{page>en:start#Error Handling&noheader}} 
-==== History ====  
-|1.0.0.2|New To Version| 
  
en/try.txt ยท Last modified: 2020/02/28 10:46 (external edit)