> Why would I not use cfabort there?
> When is a good time to use cfabort?
> It seems like the "exit sub" function in VB. Am I mistaken?

You don't need cfabort with a cflocation because when you use cflocation,
the page that is currently executing stops because of the page redirect.
You've effectively handed off to another template, so any code below the
cflocation will never execute.

You would use cfabort when you want to stop the execution of the *currently*
executing page dead in its tracks. Tying it to what I said above, since you
haven't handed off to another template, you need to explicitly end the page
execution if you want to do so at any point above the last line of code in
the template.

I wouldn't liken the cfabort tag to the "exit sub" function in VB because,
while the exit sub will stop executing the Sub routine that it's currently
in, the rest of the VB code (the code that called it, etc.) will still keep
on running. To me, the "exit sub" function is more similar in functionality
to the cfexit tag.

Hope this helps?

Dave.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to