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)
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.1.13. Value<br />
Value(ItemName, Field)<br />
This property returns a variant containing the current value of the field specified by ”FieldName”of the<br />
item specified by ”ItemName”.<br />
If the data is not available or one of the parameters is invalid an empty variant is returned.<br />
Arguments<br />
ItemName<br />
Field<br />
The name of the item as a string.<br />
Either the name of the field whose value to retrieve as a string or its numeric<br />
identifier.<br />
Return Value<br />
Returns the value of the identified field or an empty variant if the value is still unkown or invalid.<br />
Error handling<br />
If the item or the field has not been registered or the field is not in the field dictionary, an exception<br />
is thrown notifying the user that the argument is not valid.<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 />
Dim Data As Variant<br />
'The returned value can be either a string or a numeric value. '<br />
list.RegisterItems ItemList, FieldList<br />
Data = list.Value("EUR=", "BID")<br />
'The latest value of the "BID" field of the item "EUR=" is stored<br />
in Data. '<br />
2.1.14. FieldStatus<br />
FieldStatus(ItemName, FieldName)<br />
This property returns a value from the RT_FieldStatus enumeration.<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 />
17