Iif and CF 7vs. CF 8

2007-11-06 Thread Lincoln Milner
Hello, all, I have this code snippet below which runs fine on my local workstation (Windows XP, CF 8 IIS 5.1). When I throw it up on our dev server (Windows 2k3, IIS 6, CF 7) I get an index out of bounds error on the second IIF line below. I've looked at the docs and I don't see why this code

RE: Iif and CF 7vs. CF 8

2007-11-06 Thread Dave Watts
cfset uploadFile( IIF(Len(Trim(form.txtFileName)) GT 0, Evaluate(DE(ListGetAt(form.txtFileName, intCounter))), ), ... Why are you using DE inside Evaluate? The point of the DE (Delay Evaluation) function is to prevent the automatic evaluation that occurs within IIF. Dave Watts, CTO, Fig