Reuters AdfinX Real Time 1.0 Library User Guide (Doc. No. 4510529)

Reuters AdfinX Real Time 1.0 Library User Guide (Doc. No. 4510529) Reuters AdfinX Real Time 1.0 Library User Guide (Doc. No. 4510529)

master272.com
from master272.com More from this publisher
26.10.2014 Views

AdfinX Real Time 1.0 Library - User's Guide Arguments None Return Value Returns the status of the source of the list object. Error handling If the Source has not been set (i.e. the source is in the state RT_SOURCE_NOT_SET) an error exception is thrown. Example Public list as AdxRtList Set list = New AdxRtList list.Source = "IDN_SELECTFEED" Status = list.SourceStatus 'Sets Status to the status of the "IDN_SELECTFEED" source; this might be RT_SOURCE_UP or RT_SOURCE_DOWN, for example' 2.2. ADXRTLIST METHODS 2.2.1. IsRegisteredField IsRegisteredField(ItemName, FieldName) This property returns a Boolean value which is True if the designated field is contained in the given item of the AdxRtList object. Otherwise it returns False. Arguments ItemName FieldName The name of the item as a string. The name of the field as a string. Return Value True if the field was found, False otherwise. 20

AdfinX Real Time 1.0 Library - User's Guide Example Public list as AdxRtList Set list = New AdxRtList Dim ItemList(0 To 1) as Variant ItemList(0) = "EUR=" ItemList(1) = "JPY=" Dim FieldList(0 To 1) as Variant FieldList(0) = "BID" FieldList(1) = "ASK" list.RegisterItems ItemList, FieldList TestBid = list.IsRegisteredField("EUR=", "BID") 'Sets TestBid to True' TestDName = list.IsRegisteredField("JPY=", "DISPLAY_NAME") 'Sets TestDName to False' 2.2.2. IsRegisteredItem IsRegisteredItem(ItemName) This property returns a Boolean value which is True if the designated item has been registered in the AdxRtList object. Otherwise it returns False. Arguments ItemName The name of the item as a string. Return Value True if the item was found, False otherwise. Example Public list as AdxRtList Set list = New AdxRtList Dim ItemList(0 To 1) as Variant ItemList(0) = "EUR=" ItemList(1) = "JPY=" list.RegisterItems ItemList, FieldList TestEUR = list.IsRegisteredItem("EUR=") 'Sets TestEUR to True' TestCHF = list.IsRegisteredItem("CHF=") 'Sets TestCHF to False' 21

<strong>AdfinX</strong> <strong>Real</strong> <strong>Time</strong> <strong>1.0</strong> <strong>Library</strong> - <strong>User</strong>'s <strong>Guide</strong><br />

Arguments<br />

<strong>No</strong>ne<br />

Return Value<br />

Returns the status of the source of the list object.<br />

Error handling<br />

If the Source has not been set (i.e. the source is in the state RT_SOURCE_NOT_SET) an error<br />

exception is thrown.<br />

Example<br />

Public list as AdxRtList<br />

Set list = New AdxRtList<br />

list.Source = "IDN_SELECTFEED"<br />

Status = list.SourceStatus<br />

'Sets Status to the status of the "IDN_SELECTFEED" source;<br />

this might be RT_SOURCE_UP or RT_SOURCE_DOWN, for<br />

example'<br />

2.2. ADXRTLIST METHODS<br />

2.2.1. IsRegisteredField<br />

IsRegisteredField(ItemName, FieldName)<br />

This property returns a Boolean value which is True if the designated field is contained in the given<br />

item of the AdxRtList object. Otherwise it returns False.<br />

Arguments<br />

ItemName<br />

FieldName<br />

The name of the item as a string.<br />

The name of the field as a string.<br />

Return Value<br />

True if the field was found, False otherwise.<br />

20

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!