[thelist] CF: form. Url. Attributes. A better way?

Frank framar at interlog.com
Sun Jan 14 20:32:31 CST 2001

I'm trying to create scheme where everything is pretty modular, 
almost object oriented. I break my queries apart from the logic, so 
that any number of display modules can call to them. What I tend to 
end up doing it this:

<cfif IsDefined("URL.ID")>
    <cfset TheID = "#URL.ID#">

<cfelsif IsDefined("Form.ID")>
    <cfset TheID = "#Form.ID#">

<cfelseif IsDefined("Attributes.ID")>
    <cfset TheID = "#Attributes.ID#">


Use: #TheID#

This seems rather clumsy to me. Does anyone have a better of getting 
the correct scope for a variable without having to redefine them each 
time on every query?

Frank Marion                      Loofah Communications
frank at loofahcom.com               http://www.loofahcom.com

More information about the thelist mailing list