> I was trying to use try/catch in cfscript and i couldn't get 
> it to work. i've checked all the documentation i can find (not 
> much) and it doesn't say if you can or cannot use try/catch 
> inside of cfscript. has anyone used it before? thanks for all 
> the help.

CFSCRIPT doesn't support try/catch exception handling.

It might be easier to work from a list of what CFSCRIPT can do:

- "normal" for loops
- for/in loops
- if/else/elseif condition blocks
- switch statements
- while loops
- do/while loops
- functions in CF 5

Here are things you can't do:

- try/catch
- with blocks

Basically, there's no trick to finding out what works in CFSCRIPT. Just try
your favorite JavaScript syntax, but just remember that you can't use
JavaScript operators.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to