On Thu, 31 Mar 2005 06:26:11 +0200, Nando <[EMAIL PROTECTED]> wrote:
> Excellent advice! ... but isn't he doing something with it already? He's
> returning an empty query - at least that seems to be the intention of the
> code i see there, even if it isn't immediately apparent.
>
No, he's not doing any thing with it. That fact is made /very/ clear
by the comment: <!--- do nothing --->. ;-)
However, all he needs to do to fix the immediate problem and make the
intent more clear is move one line of code.
<cfset var qLDAP = 0>
<cftry>
<cfldap action="query" name="qLDAP" .../>
<cfcatch type="Any">
<cfset qLDAP=queryNew(getAttributes())>
</cfcatch>
</cftry>
Patrick
--
Patrick McElhaney
704.560.9117
http://pmcelhaney.weblogs.us
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]