| |
| Seeks a Rate card by its current rate. |
| |
 |
VARIANT_BOOL SeekByCurRate ( enum eSeekMode eSeekMode, BSTR bsCurrencyCodeRef, BSTR bsCurrencyCode, DATE dFromDate ) |
|
| |
| Key information |  | This method uses key number 2 (See SwapKey). |  | This is a unique key. |  | This is a null key, only the records where pFromDate is valid and pIsCurrent is true are in the index. |
| | | | Key segment information | | Segment Name | Type | Order | Collation | | pCurrencyCodeRef | BSTR | Ascending | Case insensitive | | pCurrencyCode | BSTR | Ascending | Case insensitive | | pFromDate | DATE (date) | Ascending | - | | pIsCurrent | VARIANT_BOOL | Ascending | - |
| | | | Parameters | | eSeekMode | | [in] A value of the 'eSeekMode' enumeration. | | bsCurrencyCodeRef | | [in] The reference currency code of the rate card you want to seek. | | bsCurrencyCode | | [in] The currency code of the rate card you want to seek. | | dFromDate | | [in] The date from which the rate card you want to seek is valid. | | | | Return value |
| True if the record with the given properties was found, otherwise false. |
| |
| See Also |
|
|
|
| |
| Samples |
| |
 |
C++ |
| |
// Seek the current exchange rate for 'EUR'/'USD'
if (pRate->SeekByCurRate (smGreaterOrEqual, "EUR", "USD", COleDateTime (0, 0, 0, 0, 0, 0).m_dt))
{
// Process record data
}
|
|
 |
C# |
| |
// Seek the current exchange rate for 'EUR'/'USD'
if (oRate.SeekByCurRate (eSeekMode.smGreaterOrEqual, "EUR", "USD", new DateTime ()))
{
// Process record data
}
|
|
 |
VBS |
| |
' Seek the current exchange rate for 'EUR'/'USD'
Dim dtFromDate
If oRate.SeekByCurRate(smGreaterOrEqual, "EUR", "USD", dtFromDate) Then
' Process record data
End If
|
|
 |
VB.NET |
| |
' Seek the current exchange rate for 'EUR'/'USD'
Dim dtFromDate As DateTime
If oRate.SeekByCurRate(eSeekMode.smGreaterOrEqual, "EUR", "USD", dtFromDate) Then
' Process record data
End If
|
|