0

2D array

hello,

i have a problem , how to use 2D array and how to access the array.

Regards,
Sushma.S

by
2 Replies
  • Try this.
    CODE
    var myarray = [ [1,2,3],[4,5,6] ];

    print(myarray[0][0]);
    // =1
    print(myarray[1][2]);
    // =6


    hope this help.
    0
  • My solution is:

    CODE
    var sched1 = new Array(4);
    for (var i = 0; i < sched1.length; i++)
    sched1[i]= new Array();
    0

Recent Posts

in Getting Started / Beginners - Yahoo! TV Widgets