Hi all,
Quick question, whats the max number of characters a variable can hold in mIRC?
Thanks
Ninko
Try it yourself: //var %something = $str(a,5000)
keep decrementing the number until you don't get an error anymore.
This number varies as it also includes the number of characters in the variable name.
If I recall correctly, before version 6.32 it was about 600 characters, and after about 4000.
Variables were pretty safe at around the 900 mark pre-6.32 (the hard limit was around ~950, 50 chars for the var name should have sufficed). The pre-6.32 limit was not as consistent, though, as not all commands had the same hard limit-- I think that was mostly fixed with the new length limit.
The current hard limit is roughly 4k, or 4096 bytes, meaning you will be safe with 4000.
Thanks all for the feedback!
Take care
Ninko