{{Quickfixn}} IndicationOfInterest - IOIid error

Grant Birchmeier gbirchmeier at connamara.com
Tue Feb 11 12:25:12 PST 2020


I've never coded in VB, but it's all just classes and methods in either
language.

StringField is just a QF/n class (it's the base class of all string
fields), and given your earlier code, I know you know how to use "new"!

To create a field 23=999 (which is IOIShares or IOIQty, depending on which
FIX version you are on), the code would be:
    new StringField(23, "999")
Similarly, you could also do it as a IntField:
    new IntField(23, 999)
QF/n is smart enough to work it either way.

If you have an IOI message, you can call:
    ioiMsg.setField(new StringField(23, "999"));

(There is no SetString, sorry, my mistake.  )

And the generic getter is:
    ioiMsg.getField(23) // returns field value as a string, e.g. 999

Or you can do:
    f23 = StringField(23);
    ioiMsg.GetField(f23); // sets f23's value to what it finds for 23 in
ioiMsg
    // the above will also work if f23 = *Int*Field(23)

You should definitely have a look at this page:
http://quickfixn.org/tutorial/custom-fields-groups-and-messages.html
The generic methods are touched on at the bottom, but the custom DD stuff
on the page is also very important.

-Grant


On Tue, Feb 11, 2020 at 2:06 PM Wayne Kaplan <
wkaplan at financialnortheastern.com> wrote:

> Also….
>
>
>
> I’ve only been using vb.net for a couple of years.
>
> Prior to that I had been using Visual FoxPro and earlier versions of Fox
> since 1988.
>
>
>
> That being said I’m not all that familiar with some of the ins and outs of
> .net programming.
>
>
>
> How would I do the following…
>
>
>
> create a generic "new StringField(23)", And then add it with
> setString(stringField).
>
> 'You can later retrieve it with GetString(23).
>
>
>
> Any help would be great however I understand if you won’t be able to…
>
>
>
> Thanks
>
>
>
> Wayne
>
>
>
>
>
>
>

-- 
Grant Birchmeier
*Connamara Systems, LLC*
*Made-To-Measure Trading Solutions.*
Exactly what you need. No more. No less.
http://connamara.com

-- 
This email, along with any attachments, is confidential. If you believe you 
received this message in error, please contact the sender immediately and 
delete all copies of the message. Thank you from Connamara Systems, LLC.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20200211/7093b6f2/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 5800 bytes
Desc: not available
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20200211/7093b6f2/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 1857 bytes
Desc: not available
URL: <http://lists.quickfixn.com/pipermail/quickfixn-quickfixn.com/attachments/20200211/7093b6f2/attachment-0005.jpg>


More information about the Quickfixn mailing list