Passing value to Array

Ask a Question related to Macromedia Flash Data Integration, Design and Development.

  1. #1

    Default Passing value to Array

    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.

    pooknikk Guest

  2. Similar Questions and Discussions

    1. passing array in the url
      Hello there, I am unable to pass an array thought he url. Even the most simple array as in the code: $test = array(1,2,3,4); echo "<a...
    2. Array passing problem...
      Hoping someone can point out my more than likely simple mistake here... function getBranchArray($desig,$branchArray){ $arrayResult =...
    3. passing an array
      Hello, what is the best way to pass an array to a sub routine, IE. my @fields = qw(one two three); send_array(@fields);
    4. Passing Array Via CGI.pm
      Hello all, I'm a Perl newbie here and have a quick question regarding CGI.pm. I have a CGI script that passes an array to another CGI script as...
    5. Passing a keyed Array via php.
      Hi ACteon! On 18 Aug 2003 19:17:23 -0700, acteon@yahoo.com (Acteon) wrote: Use - form method="post" - $_POST etc. - no books as they are...
  3. #2

    Default Re: Passing value to Array

    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?

    Sivakanesh Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139