| |
| 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 |
 |
CreateSpplm |
 | Browse |
 | View |
 | The possible keys (and their numerical value) can be found in the SeekBy-methods of this interface. |
|
|
| |
| Samples |
| |
 |
C++ |
| |
// Browse for a Supplement, which positions the file by a key that is unknown
pSpplm->Browse (VARIANT_FALSE);
// Swap the key to 'SPL_COD' (1), positioning by the Supplement code
pSpplm->SwapKey (1);
// Show the selected Supplement (you can then navigate through the file using the key 'SPL_COD')
pSpplm->View ();
|
|
 |
C# |
| |
// Browse for a Supplement, which positions the file by a key that is unknown
oSpplm.Browse (false);
// Swap the key to 'SPL_COD' (1), positioning by the Supplement code
oSpplm.SwapKey (1);
// Show the selected Supplement (you can then navigate through the file using the key 'SPL_COD')
oSpplm.View ();
|
|
 |
VBS |
| |
' Browse for a Supplement, which positions the file by a key that is unknown
Call oSpplm.Browse(False)
' Swap the key to 'SPL_COD' (1), positioning by the Supplement code
Call oSpplm.SwapKey(1)
' Show the selected Supplement (you can then navigate through the file using the key 'SPL_COD')
Call oSpplm.View()
|
|
 |
VB.NET |
| |
' Browse for a Supplement, which positions the file by a key that is unknown
oSpplm.Browse(False)
' Swap the key to 'SPL_COD' (1), positioning by the Supplement code
oSpplm.SwapKey(1)
' Show the selected Supplement (you can then navigate through the file using the key 'SPL_COD')
oSpplm.View()
|
|