which your name is not. It's the array dereference that's causing you
problems. You can use this code instead:
<CFIF arrayLen(QGetProjects.PROJ_NAME) GTE records + 1 and
(QGetProjects.PROJ_NAME[Records] EQ QGetProjects.PROJ_NAME[Records+1])>
Cheers,
barneyb
> -----Original Message-----
> From: Bruce, Rodney S HQISEC/Veridian IT Services
> [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 03, 2004 3:03 PM
> To: CF-Talk
> Subject: Isdefined Issue
>
> HI all
>
> Can't figue out why I am getting this error:
>
> Parameter 1 of function IsDefined which is now
> "QGetProjects.PROJ_NAME[2]"
> must be a syntactically valid variable name
>
> It is used in this if statement:
>
> <CFSET R = Records +1>
> <CFIF isdefined("QGetProjects.PROJ_NAME[#R#]") and
> (QGetProjects.PROJ_NAME[Records] EQ
> QGetProjects.PROJ_NAME[Records+1])>
>
> If I take out the isdefined all works until I hit a record that is not
> defined.
>
> QGetProjects is a query.
>
> I can:
>
> <CFOUTPUT>
> #QGetProjects.Proj_Name[2]#
> </CFOUTPUT>
>
> So the variable is valid.
>
>
> I am using CF 5
>
> Anyone know this issue??
>
> Thanks for any help
> Rodney
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

