26.10.2014 Views

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)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<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 />

list.CloseAllLinks<br />

'Stop the delivery of data for all items registered in the list list<br />

and tell the source that they are no longer required. '<br />

2.3. ADXRTLIST EVENTS<br />

2.3.1. OnUpdate<br />

OnUpdate(ItemName, <strong>User</strong>Tag, ItemStatus)<br />

When StartUpdates has been called with either the RT_MODE_ONUPDATE or<br />

RT_MODE_ONTIME_IF_UPDATED mode, events of this type will be sent to the user application when<br />

data updates from the source are received for any of the items registered by the object.<br />

An event is generated for each item whose data have been updated by the data source, either as soon<br />

as the change is received (when RT_MODE_ONUPDATE is used), or if the change occurred during the<br />

period between regular checks controlled by a timer (when RT_MODE_ONTIME_IF_UPDATED is used).<br />

<strong>User</strong> code should provide a callback function to handle these events. In this function, the ListFields<br />

method can be called to determine which fields in the item have changed, and what the new field<br />

values are.<br />

Arguments<br />

ItemName<br />

<strong>User</strong>Tag<br />

ItemStatus<br />

The name of one of the items registered in the list object. The update event<br />

is associated with this item.<br />

The user tag associated with the item, if one was supplied using the<br />

<strong>User</strong>Tag method. This parameter should be treated as constant: it must not<br />

be changed by the application code.<br />

The status of the item, a value from the RT_ItemStatus enumeration.<br />

2.3.2. OnImage<br />

OnImage(DataStatus)<br />

This event is delivered once a data image has been received for each of the registered items of the<br />

AdxRtList object which is receiving data following a call to StartUpdates using the<br />

RT_MODE_IMAGE mode. It is also called if a time-out occurred (set using the "TIMEOUT" attribute of<br />

the Mode property) before all data images could be received.<br />

<strong>User</strong> code should provide a callback function to handle these events. In this function, the ListItems<br />

method can be used to see which items have a data image associated with them; for each of these,<br />

ListFields method can be called to obtain the values of its fields.<br />

Arguments<br />

DataStatus<br />

The status of the registered items, a value from the RT_DataStatus<br />

enumeration. This will have the value RT_DS_FULL if data have been<br />

received from the source for all registered items, or RT_DS_PARTIAL if at<br />

least one of the items still has no associated data at the end of the time-out<br />

period.<br />

26

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

Saved successfully!

Ooh no, something went wrong!