|  | 
			
				| Seeks a Sales Order by its customer reference. | 
			
				|  | 
			
				| 
						
							|  | VARIANT_BOOL SeekByCstRefer ( enum eSeekMode eSeekMode,
 LONG lCstNum,
 BSTR bsReferenceCst
 )
 |  | 
			
				|  | 
			
				| 
						| Key information |  |  |  |  |  | Key segment information |  |  |  |  |  | Parameters |  | eSeekMode |  | [in] A value of the 'eSeekMode' enumeration. |  | lCstNum |  | [in] The customer number of the Sales Order you want to seek. |  | bsReferenceCst |  | [in] The customer reference of the sales order you want to seek. |  |  |  | Return value |  | True if the record with the given properties was found, otherwise false. |  
							|  |  
							| See Also |  
							|  |  | 
			|  | 
			| Samples | 
			|  | 
			
				| 
						
							|  | C++ |  
							|  | // Seek the document for the Customer with number 25 and with customer reference = 'Customer reference'
 if (pSOrder->SeekByCstRefer (smEqual, 25, "Customer reference"))
 // Process record data
 
 
 |  | 
			
				| 
						
							|  | C# |  
							|  | // Seek the document for the Customer with number 25 and with customer reference = 'Customer reference'
 if (oSOrder.SeekByCstRefer (eSeekMode.smEqual, 25, "Customer reference"))
 // Process record data
 
 
 |  | 
			
				| 
						
							|  | VBS |  
							|  | ' Seek the document for the Customer with number 25 and with customer reference = 'Customer reference'
 If oSOrder.SeekByCstRefer(smEqual, 25, "Customer reference") Then
 ' Process record data
 End If
 
 
 |  | 
			
				| 
						
							|  | VB.NET |  
							|  | ' Seek the document for the Customer with number 25 and with customer reference = 'Customer reference'
 If oSOrder.SeekByCstRefer(eSeekMode.smEqual, 25, "Customer reference") Then
 ' Process record data
 End If
 
 
 |  |