<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1447545532062_4330">You need:<br><span id="yui_3_16_0_1_1447545532062_4419"></span></div><div id="yui_3_16_0_1_1447545532062_4459"><br><span id="yui_3_16_0_1_1447545532062_4419"></span></div><div><span id="yui_3_16_0_1_1447545532062_4419"><br></span></div><div dir="ltr" id="yui_3_16_0_1_1447545532062_4423"><span id="yui_3_16_0_1_1447545532062_4419">int max = 100;<br></span></div><div id="yui_3_16_0_1_1447545532062_4425"><span id="yui_3_16_0_1_1447545532062_4419">String n = "";</span><br><span></span></div><div id="yui_3_16_0_1_1447545532062_4433"><br><span></span></div><div id="yui_3_16_0_1_1447545532062_4435"><span>while (true)</span></div><div id="yui_3_16_0_1_1447545532062_4416"><span>{</span></div><div id="yui_3_16_0_1_1447545532062_4332">    if (n.length() < max)</div><div id="yui_3_16_0_1_1447545532062_4431">    {</div><div id="yui_3_16_0_1_1447545532062_4426">        n += "some data";<br></div><div id="yui_3_16_0_1_1447545532062_4382">    }<br><span></span></div><div id="yui_3_16_0_1_1447545532062_4381"><br></div><div dir="ltr" id="yui_3_16_0_1_1447545532062_4429">    // some break statement<br><span></span></div><div id="yui_3_16_0_1_1447545532062_4380"><br><span></span></div><div id="yui_3_16_0_1_1447545532062_4379"><span>}</span></div><div id="yui_3_16_0_1_1447545532062_4310"> </div><div id="yui_3_16_0_1_1447545532062_4308" class="signature"><br><div id="yui_3_16_0_1_1447545532062_4513" dir="ltr">RUSSELL BROWN</div><div id="yui_3_16_0_1_1447545532062_4478" dir="ltr">Markham Ontario</div><div id="yui_3_16_0_1_1447545532062_4480" dir="ltr">Currently a Java Programmer working with the IB-Gateway on the client side.<br></div><div id="yui_3_16_0_1_1447545532062_4487"><br></div><div id="yui_3_16_0_1_1447545532062_4536"><br></div></div><br>  <div id="yui_3_16_0_1_1447545532062_4275" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div id="yui_3_16_0_1_1447545532062_4274" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div id="yui_3_16_0_1_1447545532062_4273" dir="ltr"> <hr size="1">  <font id="yui_3_16_0_1_1447545532062_4272" size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> "Gaull, Jim" <JGaull@ftportfolios.com><br> <b><span style="font-weight: bold;">To:</span></b> Mailing list for QuickFIX/n <quickfixn@lists.quickfixn.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, November 13, 2015 3:44 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: {{Quickfixn}} Limit String Length<br> </font> </div> <div id="yui_3_16_0_1_1447545532062_4338" class="y_msg_container"><br><div id="yiv8884502209"><style>#yiv8884502209 #yiv8884502209 --
 
 _filtered #yiv8884502209 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered #yiv8884502209 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv8884502209  
#yiv8884502209 p.yiv8884502209MsoNormal, #yiv8884502209 li.yiv8884502209MsoNormal, #yiv8884502209 div.yiv8884502209MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;}
#yiv8884502209 a:link, #yiv8884502209 span.yiv8884502209MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv8884502209 a:visited, #yiv8884502209 span.yiv8884502209MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv8884502209 span.yiv8884502209EmailStyle17
        {color:#1F497D;}
#yiv8884502209 .yiv8884502209MsoChpDefault
        {}
 _filtered #yiv8884502209 {margin:1.0in 1.0in 1.0in 1.0in;}
#yiv8884502209 div.yiv8884502209WordSection1
        {}
#yiv8884502209 </style><div id="yui_3_16_0_1_1447545532062_4337">
<div id="yui_3_16_0_1_1447545532062_4336" class="yiv8884502209WordSection1">
<div id="yui_3_16_0_1_1447545532062_4490" class="yiv8884502209MsoNormal"><span id="yui_3_16_0_1_1447545532062_4489" style="font-size:11.0pt;">Thanks for the response!  I can add the logic myself but I didn’t want to add my own custom code if there was already a way to do it using QuickFIX.</span><span style="font-size:11.0pt;"></span></div> 
<div id="yui_3_16_0_1_1447545532062_4539" class="yiv8884502209MsoNormal"><span style="font-size:11.0pt;">  </span></div> 
<div class="qtdSeparateBR"><br><br></div><div class="yiv8884502209yqt9479037365" id="yiv8884502209yqt52279"><div id="yui_3_16_0_1_1447545532062_4335" class="yiv8884502209MsoNormal"><b><span style="font-size:10.0pt;">From:</span></b><span id="yui_3_16_0_1_1447545532062_4334" style="font-size:10.0pt;"> Quickfixn [mailto:quickfixn-bounces@lists.quickfixn.com]
<b>On Behalf Of </b>Grant Birchmeier<br clear="none">
<b>Sent:</b> Friday, November 13, 2015 11:40 AM<br clear="none">
<b>To:</b> Mailing list for QuickFIX/n<br clear="none">
<b>Subject:</b> Re: {{Quickfixn}} Limit String Length</span></div> 
<div class="yiv8884502209MsoNormal">  </div> 
<div>
<div>
<div class="yiv8884502209MsoNormal"><span style="color:black;">Sorry, no, that's not an implemented feature in any QF port that I'm aware of.</span></div> 
</div>
</div>
<div id="yui_3_16_0_1_1447545532062_4342">
<div id="yui_3_16_0_1_1447545532062_4341" class="yiv8884502209MsoNormal">  </div> 
<div>
<div class="yiv8884502209MsoNormal">On Fri, Nov 13, 2015 at 9:16 AM, Gaull, Jim <<a rel="nofollow" shape="rect" ymailto="mailto:JGaull@ftportfolios.com" target="_blank" href="mailto:JGaull@ftportfolios.com">JGaull@ftportfolios.com</a>> wrote:</div> 
<div>
<div>
<div class="yiv8884502209MsoNormal" style=""><span style="font-size:13.5pt;color:black;background:white;">Hi everyone,</span></div> 
<div class="yiv8884502209MsoNormal" style=""><span style="font-size:13.5pt;color:black;background:white;"> </span></div> 
<div class="yiv8884502209MsoNormal" style=""><span style="font-size:13.5pt;color:black;background:white;">Does anyone know if there’s a way to set the maximum string length that’s allowed for a tag through the dictionary? 
 I would like to reject messages back to our counterparty if certain tags are too long.  For example, I believe our counterparty could send us a string that’s 100 characters long for the symbol (tag 55) but our database isn’t set up to accept a field that long. 
 For the sake of speed, I insert the contents of the messages into our database before validating the lengths of the tags.  If it’s not possible, I’ll just add a quick check before inserting into the database since my inserts are happening on a separate thread
 and won’t slow down the processing of new messages coming in.</span></div> 
<div class="yiv8884502209MsoNormal" style=""><span style="font-size:13.5pt;color:black;background:white;"> </span></div> 
<div class="yiv8884502209MsoNormal" style=""><span style="font-size:13.5pt;color:black;background:white;">Thanks!!</span></div> 
<div class="yiv8884502209MsoNormal" style=""><span style="font-size:13.5pt;color:black;background:white;"> </span></div> 
</div>
</div>
<div class="yiv8884502209MsoNormal" style="margin-bottom:12.0pt;"><br clear="none">
_______________________________________________<br clear="none">
Quickfixn mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:Quickfixn@lists.quickfixn.com" target="_blank" href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a></div> 
</div>
<div class="yiv8884502209MsoNormal"><br clear="none">
<br clear="all">
</div> 
<div>
<div class="yiv8884502209MsoNormal">  </div> 
</div>
<div class="yiv8884502209MsoNormal">-- </div> 
<div>
<div>
<div class="yiv8884502209MsoNormal"><span style="font-size:10.0pt;background:white;">Grant Birchmeier</span></div> 
</div>
<div>
<div class="yiv8884502209MsoNormal"><b><span style="font-size:10.0pt;color:#3333FF;background:#FFCC00;">Connamara Systems, LLC</span></b></div> 
</div>
<div>
<div class="yiv8884502209MsoNormal"><b><span style="font-size:10.0pt;">Made-To-Measure Trading Solutions.</span></b></div> 
</div>
<div>
<div class="yiv8884502209MsoNormal"><span style="font-size:10.0pt;">Exactly what you need. No more. No less.</span></div> 
</div>
<div>
<div class="yiv8884502209MsoNormal"><span style="font-size:10.0pt;"><a rel="nofollow" shape="rect" target="_blank" href="http://connamara.com/">http://connamara.com</a></span></div> 
</div>
</div>
</div></div>
</div>
</div></div><br><div class="yqt9479037365" id="yqt21104">_______________________________________________<br clear="none">Quickfixn mailing list<br clear="none"><a shape="rect" ymailto="mailto:Quickfixn@lists.quickfixn.com" href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br clear="none"><a shape="rect" href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br clear="none"></div><br><br></div> </div> </div>  </div></body></html>