Hi all,
    I'm just working on porting our intranet (which is currently running
under CF5) to CFMX, and right off the bat I have a little strangeness....

I have a query, Q_Changers which contains the names of files that need to be
copied, generating the query works fine, but the copy code...

<CFLOOP LIST="#ValueList(Q_Changers.Name)#" INDEX="file">
   <CFFILE ACTION="COPY" SOURCE="#REQUEST.RootPath##file#"
DESTINATION="#REQUEST.MirrorDir#\#file#" >
</CFLOOP>

fails with...

Complex object types cannot be converted to simple values.

The Error Occurred in J:\InnovativeMedia\app_globals.cfm: line 122
Called from J:\InnovativeMedia\StaffAdmin\app_locals.cfm: line 12
Called from J:\InnovativeMedia\StaffAdmin\index.cfm: line 9

120 :
121 :   <CFLOOP LIST="#ValueList(Q_Changers.Name)#" INDEX="file">
122 :    <CFFILE ACTION="COPY" SOURCE="#REQUEST.RootPath##file#"
DESTINATION="#REQUEST.MirrorDir#\#file#" >
123 :   </CFLOOP>
124 :

but I'm not using any complex objects there, all variables on line 122 are
simple strings, (REQUEST.RootPath & REQUEST.MirrorDir are directory paths,
and file is of course just a filename).  Not to mentiong the intranet is
functioning correctly under CF5 as I type.

Ideas anybody ?

---
James Sleeman




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.373 / Virus Database: 208 - Release Date: 7/2/2002

______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to