Re: Try/Catch

new topic     » goto parent     » topic index » view thread      » older message » newer message
dcuny said...
... 
case OPEN_FILE then 
   try 
      open_file(fileName) 
   catch e 
      alert("The file " & fileName & " could not be opened. " & e[EXCEPTION_MESSAGE]) 
   end try 
... 

Great simple examples, but both can be done now with an equal amount of if-then. How about another real-world example, somewhat longer, that cannot be done as well with if-then?

Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu