functions for calendar-based date calculations for a given currency (Bank calendar).
More...
|
int __stdcall | SFDB_ISVALIDCCYCODE (LPCTSTR argCode) |
| examine the validity of the currency iso code
|
|
int __stdcall | SFDB_GETWKNDFROMCCY (LPCTSTR argCode, LPTSTR retVal, size_t *nLen) |
| return the weekend code (7 characters) associated with the given currency
|
|
int __stdcall | SFDB_GETCALFROMCCY (LPCTSTR argCode, LPTSTR retVal, size_t *nLen) |
| return the calendar code associated with the given currency
|
|
◆ SFDB_GETCALFROMCCY()
int __stdcall SFDB_GETCALFROMCCY |
( |
LPCTSTR | argCode, |
|
|
LPTSTR | retVal, |
|
|
size_t * | nLen ) |
- Parameters
-
[in] | argCode | (Required) the ISO code of the currency (e.g., USD, JPY) |
[out] | retVal | (Required) the buffer that will receive the calendar code. |
[in,out] | nLen | (Required) The maximum number of characters to copy to the buffer. |
- Returns
- status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
- Return values
-
- See also
- SFDB_GETWKNDFROMCCY(), SFDB_ISVALIDCCYCODE()
returns the bank calendar code the given currency.
- Example
-
- Requirements
| |
Target Platform | Windows |
Header | SFDBM.h (include Windows.h) |
Library | SFDBM.lib |
DLL | SFDBM.dll |
- Since
- v1.68
◆ SFDB_GETWKNDFROMCCY()
int __stdcall SFDB_GETWKNDFROMCCY |
( |
LPCTSTR | argCode, |
|
|
LPTSTR | retVal, |
|
|
size_t * | nLen ) |
- Parameters
-
[in] | argCode | (Required) the ISO code of the currency (e.g., USD, JPY) |
[out] | retVal | (Required) the buffer that will receive the weekend code. |
[in,out] | nLen | (Required) The maximum number of characters to copy to the buffer. |
- Returns
- status code of the function call: zero = success, positive = success with a warning, and negative = error occurred.
- Return values
-
- See also
- SFDB_ISVALIDCCYCODE(), SFDB_GETCALFROMCCY()
returns the weekend convention code for the calendar of the given currency.
- Example
-
- Requirements
| |
Target Platform | Windows |
Header | SFDBM.h (include Windows.h) |
Library | SFDBM.lib |
DLL | SFDBM.dll |
- Since
- v1.68
◆ SFDB_ISVALIDCCYCODE()
int __stdcall SFDB_ISVALIDCCYCODE |
( |
LPCTSTR | argCode | ) |
|
- Parameters
-
[in] | argCode | (Required) the currency ISO code (e.g. USD, JPY, etc.) |
- Returns
- status code of the function call: NDK_TRUE, NDK_FALSE, and negative = error occurred.
- Return values
-
NDK_TRUE | the given code is a valid ISO currency code |
NDK_FALSE | the given code is not a valid/supported ISO currency code
|
NDK_FAILED | Operation was unsuccessful. |
- See also
- SFDB_GETWKNDFROMCCY(), SFDB_GETCALFROMCCY()
examines whether is the given code is a valid ISO currency code.
- Example
-
- Requirements
| |
Target Platform | Windows |
Header | SFDBM.h (include Windows.h) |
Library | SFDBM.lib |
DLL | SFDBM.dll |
- Since
- v1.68