Does that apply somehow to arrays?Note: Variable value size is limited to 4096bytes
> :global v [/interface print as-value]
> :global s [:tostr $v]
138
> :put [:len $s]
11767
The above three commands were run on RouterOS version 6.36.4.
They show variable $s with more bytes than the documentation says is the limit.
Did I misunderstand the manual?
I tried to add this to the Wiki Discussion page, but I don't have permission to edit.
User janisk, in the message at viewtopic.php?f=9&t=40830&p=202842#p203413, says that there was never any limit on variable size, but only on files:
User rextended has this warning in the message at viewtopic.php?f=9&t=82972&p=415090&hilit=4096#p415090:always variables could hold more data than 4KB. Only limitation is how much you can write/read to file.
Could someone please clarify?On RouterOS the maxmimum length of a String variable are 4096 Byte
...
any Array have maximum size of "the sum of lenght of all single elements on Array" + "number of Array elements" <= 4096 Byte!!!
I'm currently using a global variable that's larger than 4096 bytes, and I want to make sure that future versions of RouterOS are not going to break that.