<div dir="ltr"><div class="gmail_default"><font color="#000000"><a href="http://i.imgur.com/xJOu1F5.jpg" target="_blank">http://i.imgur.com/xJOu1F5.jpg</a></font><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 14, 2015 at 6:06 PM, Russell Brown <span dir="ltr"><<a href="mailto:russ.brown@rogers.com" target="_blank">russ.brown@rogers.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"><div>You need:<br><span></span></div><div><br><span></span></div><div><span><br></span></div><div dir="ltr"><span>int max = 100;<br></span></div><div><span>String n = "";</span><br><span></span></div><div><br><span></span></div><div><span>while (true)</span></div><div><span>{</span></div><div>    if (n.length() < max)</div><div>    {</div><div>        n += "some data";<br></div><div>    }<br><span></span></div><div><br></div><div dir="ltr">    // some break statement<br><span></span></div><div><br><span></span></div><div><span>}</span></div><div> </div><div><br><div dir="ltr">RUSSELL BROWN</div><div dir="ltr">Markham Ontario</div><div dir="ltr">Currently a Java Programmer working with the IB-Gateway on the client side.<br></div><div><br></div><div><br></div></div><br>  <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:13px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold">From:</span></b> "Gaull, Jim" <<a href="mailto:JGaull@ftportfolios.com" target="_blank">JGaull@ftportfolios.com</a>><br> <b><span style="font-weight:bold">To:</span></b> Mailing list for QuickFIX/n <<a href="mailto:quickfixn@lists.quickfixn.com" target="_blank">quickfixn@lists.quickfixn.com</a>> <br> <b><span style="font-weight:bold">Sent:</span></b> Friday, November 13, 2015 3:44 PM<div><div><br> <b><span style="font-weight:bold">Subject:</span></b> Re: {{Quickfixn}} Limit String Length<br> </div></div></font> </div><div><div> <div><br><div><div>
<div>
<div><span 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><span style="font-size:11.0pt">  </span></div> 
<div><br><br></div><div><div><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:10.0pt"> Quickfixn [mailto:<a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">quickfixn-bounces@lists.quickfixn.com</a>]
<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>  </div> 
<div>
<div>
<div><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>
<div>  </div> 
<div>
<div>On Fri, Nov 13, 2015 at 9:16 AM, Gaull, Jim <<a rel="nofollow" shape="rect" href="mailto:JGaull@ftportfolios.com" target="_blank">JGaull@ftportfolios.com</a>> wrote:</div> 
<div>
<div>
<div><span style="font-size:13.5pt;color:black;background:white">Hi everyone,</span></div> 
<div><span style="font-size:13.5pt;color:black;background:white"> </span></div> 
<div><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><span style="font-size:13.5pt;color:black;background:white"> </span></div> 
<div><span style="font-size:13.5pt;color:black;background:white">Thanks!!</span></div> 
<div><span style="font-size:13.5pt;color:black;background:white"> </span></div> 
</div>
</div>
<div style="margin-bottom:12.0pt"><br clear="none">
_______________________________________________<br clear="none">
Quickfixn mailing list<br clear="none">
<a rel="nofollow" shape="rect" href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br clear="none">
<a rel="nofollow" shape="rect" href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a></div> 
</div>
<div><br clear="none">
<br clear="all">
</div> 
<div>
<div>  </div> 
</div>
<div>-- </div> 
<div>
<div>
<div><span style="font-size:10.0pt;background:white">Grant Birchmeier</span></div> 
</div>
<div>
<div><b><span style="font-size:10.0pt;color:#3333ff;background:#ffcc00">Connamara Systems, LLC</span></b></div> 
</div>
<div>
<div><b><span style="font-size:10.0pt">Made-To-Measure Trading Solutions.</span></b></div> 
</div>
<div>
<div><span style="font-size:10.0pt">Exactly what you need. No more. No less.</span></div> 
</div>
<div>
<div><span style="font-size:10.0pt"><a rel="nofollow" shape="rect" href="http://connamara.com/" target="_blank">http://connamara.com</a></span></div> 
</div>
</div>
</div></div>
</div>
</div></div><br><div>_______________________________________________<br clear="none">Quickfixn mailing list<br clear="none"><a shape="rect" href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">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> </div>  </div></div><br>_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">Quickfixn@lists.quickfixn.com</a><br>
<a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" rel="noreferrer" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div><font size="2"><span style="background-color:#000000"><span style="background-color:#ffffff">Grant Birchmeier</span></span></font><font size="2"><font color="#3333ff"><br></font></font></div><div><font size="2"><b><font color="#3333ff"><span style="background-color:#ffcc33"><span style="background-color:#ffcc66"><span style="background-color:#ffcc99"><span style="background-color:#ffffff"><span style="background-color:#ffcc00">Connamara Systems, LLC</span></span></span></span></span></font></b></font><br></div><div><font size="2"><b>Made-To-Measure Trading Solutions.</b></font></div><div><font size="2">Exactly what you need. No more. No less.</font><font size="2"><b><font color="#3333ff"><br></font></b></font></div><div><font size="2"><a href="http://connamara.com" target="_blank">http://connamara.com</a><br></font></div></div>
</div></div>