Re: Bracket Notation

2012-03-30 Thread morgan lindley

Is 'detail' a query? If so, you need
#detail[off#idx#_street] [detail.currentRow]#.

On Fri, Mar 30, 2012 at 10:53 AM, Les Mizzell lesm...@bellsouth.net wrote:


 Trying to get the below to work in a loop:

 #detail.off1_street#
 #detail.off2_street#
 #detail.off3_street#
 #detail.off4_street#

 So, this seems correct...

 cfloop from=1 to=4 index=idx
 #detail[off#idx#_street]#br /
 /cfloop

 error: cftComplex object types cannot be converted to simple values


 I've tried a couple versions of that. H ... I'm either an idiot or
 need another cup of coffee.

 Point a poor soul in the right direction

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350600
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Bracket Notation

2012-03-30 Thread Les Mizzell

These don't word either:

#detail[offidx_street]#
#detail[off#idx#_street]#

 Trying to get the below to work in a loop:

 #detail.off1_street#
 #detail.off2_street#
 #detail.off3_street#
 #detail.off4_street#


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350601
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Bracket Notation

2012-03-30 Thread Claude Schnéegans

 
You cannot embed #...# delimitors like this.
Try with
cfloop from=1 to=4 index=idx
  #detail[off  idx  _street]#br /
/cfloop


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350602
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Bracket Notation

2012-03-30 Thread morgan lindley

This code runs perfectly on my CF8 machine:
cfset detail = StructNew()
cfset detail.off1_Street = 1
cfset detail.off2_Street = 2
cfset detail.off3_Street = 3
cfset detail.off4_Street = 4

cfoutput
cfloop from=1 to=4 index=idx
#detail[off#idx#_street]#br /
/cfloop
/cfoutput

On Fri, Mar 30, 2012 at 11:06 AM,  wrote:


  
 You cannot embed #...# delimitors like this.
 Try with
 cfloop from=1 to=4 index=idx
   #detail[off  idx  _street]#br /
 /cfloop


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350603
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Bracket Notation

2012-03-30 Thread Les Mizzell

On 3/30/2012 12:03 PM, morgan lindley wrote:
 Is 'detail' a query? If so, you need
 #detail[off#idx#_street] [detail.currentRow]#.


Ahhh - correct! Found a blog entry somewhere by Ray C. verifying as well.

This works:

cfloop from=1 to=4 index=idx
 #detail[off#idx#_street][1]#
/cfloop

Thanks!

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350604
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm