|
Browses the file for a Commercial Purchase Agreement. |
|
|
LONG Browse ( VARIANT_BOOL bFromCurrPos ) |
|
|
Parameters | bFromCurrPos | [in] When this parameter is set to true the browse will use the current position of the file and the key that was set by the previous SeekBy-method. If the parameter is false the browse will be positioned at the beginning of the file and the key will be the last one that was manually selected in the browse. | | Return value |
A LONG containing the system number of the selected record, 0 if no record was selected. | | Remarks |
| This method can only be used if user interface is allowed (parameter bWithUserInterface is set to true in the Logon method), because a record can only be selected using the browse dialog. |
|
|
See Also |
|
|
|
Samples |
|
|
C++ |
|
long lSysNum;
if (pComAp->SeekBySuppl (smEqual, caDiscount, VARIANT_FALSE, skNum, 25, akNum, "ART_001", "", 100.0))
// Browse using the key 'CAP_SUP' (supplier) and positioned on the record found by SeekBySuppl
lSysNum = pComAp->Browse (VARIANT_TRUE);
else
// Browse using the last key that was manually selected and positioned at the beginning of the file
lSysNum = pComAp->Browse (VARIANT_FALSE);
|
|
|
C# |
|
int iSysNum;
if (oComAp.SeekBySuppl (eSeekMode.smEqual, eComAgType.caDiscount, false, eSupKind.skNum, 25, eArtKind.akNum, "ART_001", "", 100.0))
// Browse using the key 'CAP_SUP' (supplier) and positioned on the record found by SeekBySuppl
iSysNum = oComAp.Browse (true);
else
// Browse using the last key that was manually selected and positioned at the beginning of the file
iSysNum = oComAp.Browse (false);
|
|
|
VBS |
|
Dim lSysNum
If oComAp.SeekBySuppl(smEqual, caDiscount, False, skNum, 25, akNum, "ART_001", "", 100.0) Then
' Browse using the key 'CAP_SUP' (supplier) and positioned on the record found by SeekBySuppl
lSysNum = oComAp.Browse(True)
Else
' Browse using the last key that was manually selected and positioned at the beginning of the file
lSysNum = oComAp.Browse(False)
End If
|
|
|
VB.NET |
|
Dim lSysNum As Long
If oComAp.SeekBySuppl(eSeekMode.smEqual, eComAgType.caDiscount, False, eSupKind.skNum, 25, eArtKind.akNum, "ART_001", "", 100.0) Then
' Browse using the key 'CAP_SUP' (supplier) and positioned on the record found by SeekBySuppl
lSysNum = oComAp.Browse(True)
Else
' Browse using the last key that was manually selected and positioned at the beginning of the file
lSysNum = oComAp.Browse(False)
End If
|
|