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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

2.2.4. UnregisterItems<br />

UnregisterItems(ItemList)<br />

This method removes a list of items from the AdxRtList object which were previously registered with<br />

RegisterItems. If the object is receiving events (data have been requested using the<br />

StartUpdates method), no more information will be received by the object concerning these items.<br />

Arguments<br />

ItemList<br />

A list of one or more names as a variant, identifying the items to remove from<br />

the list.<br />

Error handling<br />

If one of the item names in ItemList has not previously been registered in the list object, an error<br />

exception is thrown.<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 />

Dim ItemList as Variant<br />

ItemList = Array("EUR=", "JPY=")<br />

list.UnregisterItems ItemList<br />

'Removes the item "EUR=" from the list list. '<br />

2.2.5. UnregisterAllItems<br />

UnregisterItems()<br />

This method removes all items from the AdxRtList object which were previously registered with<br />

RegisterItems. If the object is receiving events (data have been requested using the<br />

StartUpdates method), no more information will be received by the object, as if the StopUpdates<br />

method were called.<br />

Arguments<br />

<strong>No</strong>ne<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.UnregisterAllItems 'Removes all registered items from the list list. '<br />

ItemCount = list.ItemListCount<br />

'This sets ItemCount to 0. '<br />

23

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

Saved successfully!

Ooh no, something went wrong!