holger kuehne: 2-dimensionales dynamisch-wachsendes Array

Beitrag lesen

Hi
So muesste es gehen:
var form = new Array(1); //1.Zeile
form[0] = new Array(4);  //4 Spalten

function anhang(a,b,c,d)
{
   oldForm = form;
   newForm = new Array(1); //neue Zeile
   newForm[0] = new Array(4);
   newForm[0][0] = a;
   newForm[0][1] = b;
   newForm[0][2] = c;
   newForm[0][3] = d;
   form = oldForm.concat(newForm);
}
Tschau Holger