ArrayAppend(), ArrayInsertAt(), ArrayPrepend()

Any of those functions should allow you to do what you want.

Spike

Steve Onnis wrote:

OK

I can create an array dynamicaly

<cfset myVar = "hello">
<cfset "myArray#myVar#" = ArrayNew(1)>

now how do I set the value of the elements?

I have tried

<cfset "myArray#myVar#[1]" = "there">
error

<cfset setVariable("#Evaluate('myArray#myVar#[1]')#","there")>
error

<cfset setVariable("myArray#myVar#[1]","there")>
error


Parameter 1 of function SetVariable which is now "myArrayhello[1]" must be a syntactically valid variable name

Any ideas?

Steve



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/





-- Stephen Milligan Consultant for hire http://www.spike.org.uk



---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to