02-17-2014 02:43 PM - edited 02-17-2014 02:44 PM
hello
I have a kind of simple question.but i tried many things and couldnt help.I need to reverse a 2-d array of strings in rows.just to make it clear i make an example:
a b c
d e f
g h i
and i want to make it
g h i
d e f
a b c
how can i do this?
Solved! Go to Solution.
02-17-2014 02:46 PM
A for Loop that autoindexes through the array row by row, then builds it back up in reverse order using Build Array and a shift register.
02-17-2014 02:55 PM
02-17-2014 03:23 PM
@aputman wrote:
Way too Rube-esque.
02-17-2014 03:41 PM - edited 02-17-2014 03:43 PM
02-17-2014 03:51 PM
@aputman wrote:
@billko wrote:
@aputman wrote:
Way too Rube-esque.
Because this is a simplified form of OpenG where there is an option to reverse by columns....hence the extra code. My bad.....sheesh.
Really? I would've just used the method described by RavensFan and stuck a transpose 2-D array before and after the loop.
02-17-2014 04:02 PM - edited 02-17-2014 04:04 PM
02-17-2014 04:13 PM
@altenbach wrote:
Here's what I would do.
Haha that should've occured to me because I first tried what you have there without the transpose 2d arrays and noticed it was doing columns and not rows.