iRet = LceGetFieldType(iSession, "SKILCODE", sBuff, length,_ decimals) txtCode.MaxLength = length ' note this is valid only if no _ ' edit codes are used