[solved] Array with more than 20 elements is truncated, need a workaround.

Executing this piece in listener

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

returns :
"#("1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", ...)"

Well, thats not exactly what I wanted to write to my ini file 8(
a[21] works as expected, so the array itself is fine.

Is there a way to pass it in one piece w/o wrapping everything in for loop?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

printAllElements

In Max 7 was added a variable and contect named printAllElements to fix staffs like this one (check the help for details).

a = for i = 1 to 30 collect i
str = with printAllElements on (a as string)

Cheers!

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.