I believe, but am not positive, that the variable length (4141 by your post) includes the number of characters in the variable name, thus a longer variable name wouldn't be able to hold the same number of characters as a short variable name.

If that is correct, then about 4000 is a more realistic number to use than 4141.

I've somewhat confirmed this.
//set %a $str(a,4144) works
//set %a $str(a,4145) returns * /set: line too long
//set %RusselKennethBairstow $str(a,4124) works
//set %RusselKennethBairstow $str(a,4125) returns * /set: line too long

Obviously, to me at least, the longer variable name has a direct affect on the number of characters that can be stored.
Looking at my examples, it seems that the maximum length could be calculated as 4145 - variable name length

Last edited by RusselB; 07/02/11 05:46 AM.