Posted By
|
Message
|
 -J-
Registered 05/10/2008
Points 228

|
1st November, 2008 at 22:19:45 -
I was wondering if there's any way to convert an array to text? Like if I had a simple 5 x 5 array with number values like this:
1,3,5,0,5
2,3,2,2,4
6,5,3,7,8
2,1,0,9,8
6,4,7,2,4
Is there a way to somehow get the information from the array and turn it into a *.txt (or similar) document that looks kinda like my example? I'm using MMF2 btw.
n/a ...
|
 Sketchy Cornwall UK
Registered 06/11/2004
Points 1971
  
|
1st November, 2008 at 23:56:18 -
The "Dynamic Array" array extension can export to .csv (comma separated values) - that's a text format exactly like your example, which can be opened in any text editor and also Excel. That would be the easiest way.
The alternative is a little more complicated, and involves using fastloops to read each value in turn, and write it to a list or editbox object.
n/a
|
 -J-
Registered 05/10/2008
Points 228

|
2nd November, 2008 at 00:25:11 -
Thanks for your help I'll try the dynamic array for now. I'm using a lot of values so the fastloop thing might not be the way to go.
Check out Sciisoft.com and our upcoming project, I'm designing a level editor atm Athan is going to design a cool interface later so it looks very boring right now but it's getting there.
n/a ...
|
|
|