Ray/Bryan...
Yup...will probably head that route (using IsZip and IsZIpCA from cflib now), but wanted to see if it was doable. There's usually a few approaches (as in how to buiold the stuff to evaluate) when using Evaluate() (is that Ray cringing...hehe), so I asked...and as always...got great answers ;-)
Cheers
Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]
---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
---------------------------------------------------------
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
----- Original Message -----
From: Bryan F. Hogan
To: CF-Talk
Sent: Tuesday, October 28, 2003 9:45 AM
Subject: RE: Dynamic CFCs
Why not just create a function that calls the correct function based on the
supplied argument?
<cffunction name="validateZip">
<cfargument name="country">
<cfargument name="zip">
<cfswitch case="#Arguments.country#">
<cfcase value="US">
<cfset validatethezip(Arguments.zip)>
</cfcase>
</cfswitch>
</cffunction>
<cffunction name="validatethezip">
<cfargument name="zip">
<cfset var something=''>
<cfset var validatethezipreturn=false>
<cfif arguments.zip is something>
<cfset validatethezipreturn=true>
</cfif>
<cfreturn validatethezipreturn>
</cffunction>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

