I agree with Ray that the CFC should do this (cleaner all around and you
can add new functions to just the CFC without touching other code) but
if you really want to it seems using CFINVOKE would be the easiest way
as the method name can be a variable.


Jim Davis


-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 12:43 PM
To: CF-Talk
Subject: RE: Dynamic CFCs


Why not make the CFC worry about which function to call based on the
user's country? Ie, you would do:

<cfif theCFC.validate(myzip, mycountry)>

This puts the work inside the CFC, not on your end.

  _____  


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to