Notifications
Clear all

[Closed] Printing out a non-truncated array

Check this out…

a = #(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21)
b = a as string
print b

The result gives you:

“#(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, …)”

How can I make it so that it gives me

“#(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21)”

Thanks for any help.

  • Neil
3 Replies

almost every 2-3 month someone asks the same question… …but truncated… probably the first time i see this form.

definitely it has to be a topic in the mxs help in category “How to…”

with printallelements on a = <long array> as string

but be honest… i was two years using my own maybe a smart but very expansive function to do it before someone told me about the built-in solution. and it’s available since max 7!

That’s what I needed, thank you very much!

  • Neil