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