ArrayAppend takes an array as its first argument
sorta like arrayAppend(myArray,something)
 
if you do arrayAppend ( "myArray", something) you are giving it a text string
Also it doesn't take a position paramater, the [blah.currentRow], since you are appending as opposed to inserting at a specific point, it detemines the array position.
 
-steve
your milage may vary since your not smoking the samething I am
 
-----Original Message-----
From: Michel Rouse [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 1:48 PM
To: Toronto CFUG (E-mail); Bay Area CFUG (E-mail)
Subject: [CFTALKTor] WHY???

I am having an issue with this bit of code:

<cfloop query="qGetSARs">

<cfset tmp=ArrayAppend("APPLICATION.SARBitMap.#ATTRIBUTES.ARName#"[qGetSARs.CurrentRow], qGetSARs.SARName)>

<cfset tmp=ArrayAppend("APPLICATION.SARBitMap.#ATTRIBUTES.ARName#"[qGetSARs.CurrentRow], qGetSARs.SARPos)>

</cfloop>

I am getting the following error:

Invalid parser construct found on line 9 at position 68. ColdFusion was looking at the following text:

[

Invalid expression format. The usual cause is an error in the expression structure

Any help would be appreciated.

Thanks in advance,

Michel

Reply via email to