$ 0 0 Hi.You can use and standar function. with length. Field--:>Length :>grea Or you can use and UDF like this String sResult = ""; if (sValue.length >= 40) sValue = sValue.substring(0,40); else sResult = sValue; return sResult; RegardsLucho