AddTicker Method (Quote Control)
Windows - Visual C++
Description
The AddTicker method adds a new
ticker item to the list.
Syntax
long AddTicker(LPCTSTR Ticker);
The AddTicker syntax has these parts:
Part |
Description |
ticker |
A String containing the ticker symbol to be added |
value |
A long integer containing 0 if successful and an error code if not. |
Remarks
The new ticker item is always added
at the end of the list. After
a ticker has been added, you should wait for the TickerAdded
event before calling UpdateAllQuotes. If
the ticker is already in the list, AddTicker returns
DDICTL_E_R_DUPTICKER without adding the ticker a second time, and the
TickerAdded event is not fired.
See Also: DeleteSelectedTicker UpdateAllQuotes
Back to: Quote Methods