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