|
Browses the file for TODO. |
|
|
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;
CString strCode = "FOST Plus 4361";
if (pSpplm->SeekByCode (smGreaterOrEqual, (LPCSTR)strCode, COleDateTime (0, 0, 0, 0, 0, 0).m_dt) && (CString)pSpplm->pCode == strCode)
// Browse using the key 'SPL_COD' (Supplement code) and positioned on the record found by SeekByCode
lSysNum = pSpplm->Browse (VARIANT_TRUE);
else
// Browse using the last key that was manually selected and positioned at the beginning of the file
lSysNum = pSpplm->Browse (VARIANT_FALSE);
|
|
|
C# |
|
int iSysNum;
string strCode = "FOST Plus 4361";
if (oSpplm.SeekByCode (eSeekMode.smGreaterOrEqual, strCode, new DateTime ()) && oSpplm.pCode.ToString () == strCode)
// Browse using the key 'SPL_COD' (Supplement code) and positioned on the record found by SeekByCode
iSysNum = oSpplm.Browse (true);
else
// Browse using the last key that was manually selected and positioned at the beginning of the file
iSysNum = oSpplm.Browse (false);
|
|
|
VBS |
|
Dim lSysNum
Dim strCode
Dim dtFromDate
strCode = "FOST Plus 4361"
If oSpplm.SeekByCode(smGreaterOrEqual, strCode, dtFromDate) And oSpplm.pCode = strCode Then
' Browse using the key 'SPL_COD' (Supplement code) and positioned on the record found by SeekByCode
lSysNum = oSpplm.Browse(True)
Else
' Browse using the last key that was manually selected and positioned at the beginning of the file
lSysNum = oSpplm.Browse(False)
End If
|
|
|
VB.NET |
|
Dim lSysNum As Long
Dim strCode As String
Dim dtFromDate As Date
strCode = "FOST Plus 4361"
If oSpplm.SeekByCode(eSeekMode.smGreaterOrEqual, strCode, dtFromDate) And oSpplm.pCode = strCode Then
' Browse using the key 'SPL_COD' (Supplement code) and positioned on the record found by SeekByCode
lSysNum = oSpplm.Browse(True)
Else
' Browse using the last key that was manually selected and positioned at the beginning of the file
lSysNum = oSpplm.Browse(False)
End If
|
|