05-14-2013 04:15 AM
Hi, i want to create a n-dimensional array full of data (string type). Something like attached file but a bit more advanced. I need to use while loop. Every time the column,row and input data change.
It would look like this:
first time a start while loop the input data should go to col 1, row1
second time input data to col 4, row 7
third to col 6, row 22,
and so on... i thking you understand the point.
in attached file i want to write string in every row.
Thanks for the answer,
Božidar
05-14-2013 04:27 AM
Forgot to add converted file to lower version.
Here it is.
05-14-2013 04:30 AM
Hi Bozidar,
two points:
- you have to keep your array in a shift register too (like your counter), otherwise you will forget previous data
- you cannot replace non-existing elements! You have to initialize that array (or the shift register) with a sufficient-sized array of empty strings...
05-14-2013 04:40 AM
Here is the corrected file.
05-14-2013 04:41 AM
Hi,
Is there any kind of logical relationship regarding which row and column the data should be created in?
Best regards
Matej
05-14-2013 04:41 AM
Thank you very much 🙂
Božidar