ScriptSpot

Forum topic · General Scripting

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

By dimwalker · 2012-03-01

Description

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 (1)

printAllElements

Anubis · 2012-03-01

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!