macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: CFDirectory in a CFScript

Subject: Re: CFDirectory in a CFScript
From: "DixieGal"
Date: Wed, 8 Aug 2007 13:22:36 -0400
Newsgroups: macromedia.coldfusion.cfml_general_discussion
Yea, that is what I had previously done, I was just trying to tidy it up 
into a little UDF :)
<sigh>  Oh well.... Thanks to all for the response, I :)
Tami


"Ian Skinner" <[email protected]> wrote in message 
news:[email protected]
| Sankalan wrote:
| > I do not think there is any equivalent function for <cfdirectory> that 
we can use inside <cfscript>
| >
| > Thanks
|
| But it is very easy to create a simple function that does the
| <cfdirectory...> and returns the results, then use that function inside
| the <cfscript> tags>
|
|
| <cffunction name="myDirectory"...>
|   <cfargument ....>
|   ...
|   <cfdirectory ... name="results>
|   ...
|   <cfreturn results>
| </cffunction>
|
| ...
|
| <cfscript>
| ...
|   thisDir = myDirectory(...);
| ...
| </cfscript> 



<Prev in Thread] Current Thread [Next in Thread>