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