- CalendarCountryById
- CalendarEventById
- CalendarValueById
- CalendarCountries
- CalendarEventByCountry
- CalendarEventByCurrency
- CalendarValueHistoryByEvent
- CalendarValueHistory
- CalendarValueLastByEvent
- CalendarValueLast
CalendarCountryById
Get a country description by its ID.
bool CalendarCountryById(
|
Parameters
country_id
[in] Country ID (ISO 3166-1).
country
[out] MqlCalendarCountry type variable for receiving a country description.
Return Value
Returns true if successful, otherwise - false. To get information about an error, call the GetLastError() function. Possible errors:
- 4001 – ERR_INTERNAL_ERROR (general runtime error),
- 5402 – ERR_CALENDAR_NO_DATA (country is not found),
- 5401 – ERR_CALENDAR_TIMEOUT (request time limit exceeded).
Example:
//+------------------------------------------------------------------+
|
See also