My testing: $len(tablename + item + data) has to be <= 939
alias lentest {
hadd -sm $1 $2 $str(x,$3)
echo -a LEN: tablename $len($1) item $len($2) data $len($hget($1,$2)) total: $calc($len($1) + $len($2) + $len($hget($1,$2)))
hfree $1
}
/lentest a a 937 >> LEN: tablename 1 item 1 data 937 total: 939
/lentest a a 938 >> line too long
/lentest aaa a 935 >> LEN: tablename 3 item 1 data 935 total: 939
/lentest aaa a 936 >> line too long
/lentest a ab 936 >> LEN: tablename 1 item 2 data 936 total: 939
/lentest a ab 937 >> line too long
...the max len of %vars is likely: $len(varname (including the % char) + data) has to be <= 942
alias lentest2 {
set -u $+(%,$1) $str(x,$2)
echo -a LEN: varname $len($var($+($1,*),1)) data $len($($var($+($1,*),1),2)) total: $calc($len($var($+($1,*),1)) + $len($($var($+($1,*),1),2)))
}
/lentest2 testing 934 >> LEN: varname 8 data 934 total: 942
/lentest2 testing 935 >> line too long
/lentest2 ab 939 >> LEN: varname 3 data 939 total: 942
/lentest2 ab 940 >> line too long
![smile smile](/images/graemlins/mirc/smile.gif)