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