Passing value to Array

Posted: 03-04-2005, 06:17 AM
If I've got x = "test5"
How can I put the value of x to Array

list=["test1","test2","test3","test4"];

I'd try to use ---> list=[x,"test1","test2","test3","test4"] but is not work.

Reply With Quote

Responses to "Passing value to Array"

Sivakanesh
Guest
Posts: n/a
 
Re: Passing value to Array
Posted: 03-04-2005, 01:11 PM
Well I just run you code and it works fine.

var list = new Array();
x = "test5";
list=["test1","test2","test3","test4"];
list=[x,"test1","test2","test3","test4"] ;
trace(list[0]);
trace(list[1]);
trace(list[2]);
trace(list[3]);
trace(list[4]);

Can you elaborate on your error a bit more?

Reply With Quote
 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing multiple cfprocresults out of a CFC danilocelic *TMM* Coldfusion Component Development 1 03-09-2005 05:42 PM
Passing a value in Coursebuilder Jim Rehmann Macromedia Exchange Dreamweaver Extensions 0 03-07-2005 06:31 PM
passing existing url parameters to Success URL acidrain9 Dreamweaver AppDev 1 02-18-2005 04:11 PM
passing structures using cfinvoke. SilentBob'secretfusion Coldfusion Component Development 1 02-17-2005 09:15 PM
passing ASP.net Variable string zPaul ASP.NET General 0 06-25-2003 02:53 PM