04-24-2017 01:33 PM
Dear Friends,
I would like to add row to 2d array, I have developed below logic and unfortunately it gives me weird output and some how it changes the dimension of my array
it would be great if you can take a look to it and any help from your side is highly appreciated
Input array
3 6 6
9 8 5
5 6 7
row to insert zero: 2
Out put array
3 6 6
0 0 0
9 8 5
5 6 7
Solved! Go to Solution.
04-24-2017 01:40 PM
Right-click the Insert into Array function, select Help, and read the Help. It will explain that the second input (the black solid square) is "index 0, the point in the array at which you want to insert the row". You don't put your array there, but you would put "1" if you want to insert at Array Position 1 (i.e. the second row).
It always helps to know how the function works, and reading the Help on the Function tells you.
Bob Schor
04-24-2017 01:42 PM
This looks exactly like what you are doing in your other thread, except Inserting rather than deleting.
You should try to figure out the solutions given in that message thread before starting a new message thread asking about the exact same problems.
04-24-2017 01:45 PM
Use a shift register for your source array instead of autoindexing.
04-24-2017 01:52 PM
Also: