E2E Bridge E2E Commerce

Reply To: array tips and tricks

E2E Forum Modeling & Development array tips and tricks Reply To: array tips and tricks


Hi Jens,

create an empty array:
set array = NULL;
this will not result in an empty array, but in NULL. You won’t be able to append to array (in fact you will get a NULL pointer exception). But it should be possible to append to an empty array. I suggest Alfred’s solution here.

copy an array:
set array2 = array1;
this will not create an array copy, but array2 will refer to the same array as array1 does. Again, use Alfred’s code snippet when you really want a copy of the array.

Hope this helps,