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