Investment Studio > Views > Downloads > Downloader > ActiveX interface > Aux

The Aux interface provides auxiliary information retrieval, date formatting etc.

Methods
BSTR expandPath(BSTR path)

Returns the actual path corresponding to a path containing symbolic directory names.

long getFullYear(long year, yearCap, century)

Returns 100 * century + year if year <= yearCap, 100 * (century - 1) + year otherwise.

BSTR getItemDataFormat(BSTR listName, itemName)

Returns the data format string of the download item called itemName in the download list called listName.

BSTR getItemDataPath(BSTR listName, itemName)

Returns the path to the data file of the download item called itemName in the download list called listName.

BSTR getLastDigits(long number, nDigits)

Returns the nDigits last digits in the integer number, left-padded with zeros if needed.

BSTR getLatestQuote(BSTR path, inputFormat, outputFormat)

Uses the inputFormat string to parse the data file specified by path and returns the latest quote record (by date) formatted according to outputFormat.

long getMonthNumber(BSTR monthName, monthSet)

Translates the string monthName to a month number [1, 12] using the month set called monthSet.

BSTR getNewPath(BSTR directory, extension)

Returns the full path to an unused filename with the specified extension in the specified directory.

BSTR getQuote(BSTR path, inputFormat; WORD year, month, day; BSTR outputFormat)

Uses the inputFormat string to parse the data file specified by path and returns the quote record for year, month and day, formatted according to outputFormat.

Read/write properties
long dayOffset

Number of days added to current date in properties d, dd, m, mm, y, yy, weekDay.

Read-only properties
long d

Day number in month [1, 31] for current date + Aux.dayOffset.

BSTR dd

String containing two-digit day number in month ["01", "31"] for current date + Aux.dayOffset.

long m

Month number in year [1, 12] for current date + Aux.dayOffset.

BSTR mm

String containing two-digit month number in year ["01", "12"] for current date + Aux.dayOffset.

long y

Year in current date + Aux.dayOffset.

BSTR yy

String containing last two digits in year (left-padded with zeros if needed) for current date + Aux.dayOffset.

BSTR weekDay

String containing standard English two-letter weekday code ("Mo", "Tu", "We", "Th", Fr", "Sa", "Su") for current date + Aux.dayOffset.