You can also just pass it a struct and only specify keys of the
parameters you want to pass. This way you only have to pass one variable
through the function, and you can specify what you want and do not want.

Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division


-----Original Message-----
From: Cedric Villat [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 28, 2003 4:15 PM
To: CF-Talk
Subject: CFC and private function

I want to call a private function inside my CFC. All the books say that
I
can use a private function like any other built-in function, such as:

<cfif CategoryExists(CategoryName)>

The CategoryExists function has 2 arguments, either the ID or the Name.
If I
want to use the above syntax to check for the Name, how would I do that?
I've tried something like:

CategoryExists("", CategoryName)

but my function requires that the 2 arguments are mutually exclusive. If
tried

CategoryExists( , CategoryName)

but that doesn't make much sense. Basically, how can I specify just the
Name
argument without defining the ID argument?

Cedric

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

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

Reply via email to