Sometimes you just need the length of a field of a table:
new SysDictType(SysDictField::findFieldByName(tableStr(SalesTable), identifierStr(SalesId)).typeId()).stringLen();
Sometimes you just need the length of a field of a table: