Thats the last thing I would have looked back at. Thanks a lot! Now I can
go home and work on it some more without getting frustrated.
Thanks,
Nehal
-----Original Message-----
From: pan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 19, 2000 5:22 PM
To: CF-Talk
Subject: Re: cfloop and arraynew()
From: <[EMAIL PROTECTED]>
>
> <cfset bidarray=arraynew(3)>
> <cfloop index="loopcount" from="1" to="#maxbids#">
> <TR>
> <TD> Quantity:
> </TD>
> <TD>
> <INPUT type="text" name="bidarray[#loopcount#][1]" size="7"
> maxlength="15">
>
You declared an array with three dimensions, but you call
array elements delineating only two dimensions.
I.E.
<cfset bidarray=ArrayNew(3)>
Yet,
<INPUT type="text" name="bidarray[#loopcount#][1]" size="7"
maxlength="15">
Either change the declaration to
<cfset bidarray=ArrayNew(2) or
change the calling line to
<INPUT type="text" name="#bidarray[loopcount][1][1]#" size="7"
maxlength="15">
See the difference?
> ******THE MAIN QUESTION IS ***************************
> I can't put # sign within a variable surrounded by # (#abc#xyz##), how do
i
> get around that?
> *******************************************
In this case, you didn't need the #'s around loopcount.
Unless you are in a <cfoutput> tag set, or need to refer to the
value of the var explicitly (like in the loop 'to' attriribute)
CF can tell that you are using a defined var.
Pan
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]