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 Return Value Returns the status of the field in the item. 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 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 list.StartUpdates RT_MODE_IMAGE Data = list.value("EUR=", "BID") FStatus = list.FieldStatus("EUR=", "BID") 'Sets FStatus to RT_FIELD_OK or RT_FIELD_UNKNOWN' 2.1.15. ItemStatus ItemStatus(ItemName) This property returns a value from the RT_ItemStatus enumeration. Arguments ItemName The name of the item as a string. Return Value Returns the status of the item. 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. 18

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 IStatus = list.ItemStatus("EUR=", "BID") 'Sets IStatus to the status of the item, such as RT_ITEM_OK or RT_ITEM_STALE' 2.1.16. ListStatus ListStatus This property returns a value from the RT_ListStatus enumeration. This value reflects the status of the AdxRtList object itself. Arguments None Return Value Returns the status of the list. 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 Status = list.ListStatus 'Sets Status to the status of the list object; this will be RT_LIST_INACTIVE if no items have been registered. ' 2.1.17. SourceStatus SourceStatus This property returns a value from the RT_SourceStatus enumeration. This value reflects the status of the source defined by the Source property of the AdxRtList object. 19

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

Example<br />

Public list as AdxRtList<br />

Set list = New AdxRtList<br />

Dim ItemList(0 To 1) as Variant<br />

ItemList(0) = "EUR="<br />

ItemList(1) = "JPY="<br />

Dim FieldList(0 To 1) as Variant<br />

FieldList(0) = "BID"<br />

FieldList(1) = "ASK"<br />

list.RegisterItems ItemList, FieldList<br />

IStatus = list.ItemStatus("EUR=", "BID")<br />

'Sets IStatus to the status of the item, such as RT_ITEM_OK<br />

or RT_ITEM_STALE'<br />

2.1.16. ListStatus<br />

ListStatus<br />

This property returns a value from the RT_ListStatus enumeration. This value reflects the status of<br />

the AdxRtList object itself.<br />

Arguments<br />

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

Return Value<br />

Returns the status of the list.<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 />

Status = list.ListStatus<br />

'Sets Status to the status of the list object; this will be<br />

RT_LIST_INACTIVE if no items have been registered. '<br />

2.1.17. SourceStatus<br />

SourceStatus<br />

This property returns a value from the RT_SourceStatus enumeration. This value reflects the status<br />

of the source defined by the Source property of the AdxRtList object.<br />

19

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

Saved successfully!

Ooh no, something went wrong!