|
Swaps the file to another key. |
|
 |
VARIANT_BOOL SwapKey ( SHORT sKeyNum ) |
|
|
Parameters | sKeyNum | [in] The number of the key by which you want the file positioned. | | Return value |
True if the file was positioned according to the given key, otherwise false (e.g. if the current record is a null value for the given key or if an invalid sKeyNum was supplied). |
|
See Also |
 |
CreateRate |
 | Browse |
 | View |
 | The possible keys (and their numerical value) can be found in the SeekBy-methods of this interface. |
|
|
|
Samples |
|
 |
C++ |
|
// Browse for a rate card, which positions the file by a key that is unknown
pRate->Browse (VARIANT_FALSE);
// Swap the key to 'RAT_CUR' (2), positioning by the current rate
pRate->SwapKey (2);
// Show the selected rate cards (you can then navigate through the file using the key 'RAT_CUR')
pRate->View ();
|
|
 |
C# |
|
// Browse for a rate card, which positions the file by a key that is unknown
oRate.Browse (false);
// Swap the key to 'RAT_CUR' (2), positioning by the current rate
oRate.SwapKey (2);
// Show the selected rate cards (you can then navigate through the file using the key 'RAT_CUR')
oRate.View ();
|
|
 |
VBS |
|
' Browse for a rate card, which positions the file by a key that is unknown
Call oRate.Browse(False)
' Swap the key to 'RAT_CUR' (2), positioning by the current rate
Call oRate.SwapKey(2)
' Show the selected rate cards (you can then navigate through the file using the key 'RAT_CUR')
Call oRate.View()
|
|
 |
VB.NET |
|
' Browse for a rate card, which positions the file by a key that is unknown
oRate.Browse(False)
' Swap the key to 'RAT_CUR' (2), positioning by the current rate
oRate.SwapKey(2)
' Show the selected rate cards (you can then navigate through the file using the key 'RAT_CUR')
oRate.View()
|
|