SaveTickerList Method (Quote Control)
Windows - Visual C++
Description
This method will save the list of
tickers in the quote control to the specified file.
Syntax
long result = SaveTickerList(LPCTSTR
filePath, short fileFoundAction)
The SaveTickerList syntax has these parts:
Part |
Description |
|
Result |
A long integer indicating the success of the operation. The value of result will be 0 for a successful save of the ticker list and an error code for an unsuccessful operation |
|
FilePath |
A String indicating the full path (including file name) of the NewsEdge Ticker File |
|
fileFoundAction |
A short integer with three possible values indicating the appropriate action if the file specified in filePath already exists. See Remarks |
Remarks
The File specified in FilePath must
have an .NTF file extension. If the file does contain a .NTF file
extension, an NTF extension will be appended to the file name. The
NewsEdge Ticker File is a space delimited list of tickers in text format.
fileFoundAction is only applicable if the file specified by pathName already exists. It has 3 possible values:
fileFoundAction = 0 SaveTickerList doesn't save anything and returns an error that the file already exists.
fileFoundAction = 1 SaveTickerList overwrites the contents of the specified file with the new ticker list.
fileFoundAction = 2 SaveTickerList appends the list of tickers to the end of the list of tickers already in the specified file.
See also: LoadTickerList
Back to: Quote Methods