Updates a field on a specific record in a tick table or bar table. If the record does not exist, it will be appended to the end of the tick table. If it does exist, the existing value will be edited. After the table is updated, an Update event is sent out to all Subscribed client Connection objects.
Return Type
BOOL
Syntax
Update (Selection Table, DateTimeInfo DateTime, BSTR Field, VARIANT Value) |
Remarks
The DateTime parameter specifies the record to update. The Update method returns TRUE if the update was successful, or FALSE if it was not. If the method fails, an error may be thrown: 1021 (Update method failed - file IO error). If a new value is appended to the tick table all field values excluding the updated field will be set to NULL_VALUE (-987654321) until they are also updated.
See Also
Selection, DateTimeInfo, Connection Object, Subscribe, Update Event