expand an Array[][]
in
Programming Questions
•
1 month ago
is there a way to expand an Array[][] ?
I manage to expand the second array acces with append() but I didn't manage with the first.
I also tried this, but it didn't work.
- String[][]messOsc;
- int step;
- void setup() {
- messOsc = new String[1][2] ;
- step = 0 ;
- messOsc[step][0] = "addr";
- messOsc[step][1] = "value";
- step+=1;
- messOsc = expand(messOsc, step+1);
- messOsc[step][0] = "addr2";
- messOsc[step][1] = "value2";
- etc..
- }
thank you.
1