henrysmith, welcome to the board... please note:
Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
Please edit your initial post in line with the above.
For ref. use Join method as outlined - try to avoid iteration where possible
To convert a horizontal vector to a single dimension array transpose the array twice over, eg:
Bookmarks