Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: alecken
Within my cfloop I have cfswitch cfcase statement and within each cfcase I need to do some SQL insert and update. Instead of writing cfquery within every cfcase I'm thinking of writing a function call, passing 2 parameters needed for the insert and update done inside my function.
I don't know how to call a function that does not a return a value and in CFFUNCTION I need to have CFRETURN but I don't need to return any value.Is there anyway to do this?
My personal preference is to have all functions return something. In your case, I would return true.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
quote:
Originally posted by: Newsgroup User
Although I'm like Dan: I *very rarely* write a function that doesn't at
least return a boolean true. I'm not sure why... it's probably a hangover
from CS-101 (ie: I was usually hungover for that class, so don't remember
the reason ;-)
--
Adam
Copy link to clipboard
Copied
Copy link to clipboard
Copied