{{Quickfixn}} Limit String Length

Russell Brown russ.brown at rogers.com
Sat Nov 14 16:06:05 PST 2015


You need:


int max = 100;
String n = "";

while (true){    if (n.length() < max)    {        n += "some data";
    }

    // some break statement

} 
RUSSELL BROWNMarkham OntarioCurrently a Java Programmer working with the IB-Gateway on the client side.



      From: "Gaull, Jim" <JGaull at ftportfolios.com>
 To: Mailing list for QuickFIX/n <quickfixn at lists.quickfixn.com> 
 Sent: Friday, November 13, 2015 3:44 PM
 Subject: Re: {{Quickfixn}} Limit String Length
   
#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 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.    

From: Quickfixn [mailto:quickfixn-bounces at lists.quickfixn.com]On Behalf Of Grant Birchmeier
Sent: Friday, November 13, 2015 11:40 AM
To: Mailing list for QuickFIX/n
Subject: Re: {{Quickfixn}} Limit String Length    Sorry, no, that's not an implemented feature in any QF port that I'm aware of.    On Fri, Nov 13, 2015 at 9:16 AM, Gaull, Jim <JGaull at ftportfolios.com> wrote: Hi everyone,   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.   Thanks!!   
_______________________________________________
Quickfixn mailing list
Quickfixn at lists.quickfixn.com
http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com 

    --  Grant Birchmeier Connamara Systems, LLC Made-To-Measure Trading Solutions. Exactly what you need. No more. No less. http://connamara.com 
_______________________________________________
Quickfixn mailing list
Quickfixn at lists.quickfixn.com
http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com


  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20151115/1cfe2471/attachment-0002.htm>


More information about the Quickfixn mailing list