Venice
ProjectDet::Browse
 
Browses the file for a Project Detail.
 
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
CreateProjectDet
SeekByProject
 
Samples
 
C++
 
long lProject = 12, lSysNum;
if (pProjectDet->SeekByProject (smGreaterOrEqual, lProject, 0) &&
(long)pProjectDet->pProject == lProject)
    // Browse using the key 'PJD_PRJ' (project) and positioned on the record found by SeekByProject
    lSysNum = pProjectDet->Browse (VARIANT_TRUE);
else
    // Browse using the last key that was manually selected and positioned at the beginning of the file
    lSysNum = pProjectDet->Browse (VARIANT_FALSE);

C#
 
int iProject = 12, iSysNum;
if (oProjectDet.SeekByProject (eSeekMode.smGreaterOrEqual, iProject, 0) &&
(int)oProjectDet.pProject == iProject)
    // Browse using the key 'PJD_PRJ' (project) and positioned on the record found by SeekByProject
    iSysNum = oProjectDet.Browse (true);
else
    // Browse using the last key that was manually selected and positioned at the beginning of the file
    iSysNum = oProjectDet.Browse (false);

VBS
 
Dim lProject, lSysNum
lProject = 12
If oProjectDet.SeekByProject(smGreaterOrEqual, lProject, 0) And oProjectDet.pProject = lProject Then
    ' Browse using the key 'PJD_PRJ' (project) and positioned on the record found by SeekByProject
    lSysNum = oProjectDet.Browse(True)
Else
    ' Browse using the last key that was manually selected and positioned at the beginning of the file
    lSysNum = oProjectDet.Browse(False)
End If

VB.NET
 
Dim lProject, lSysNum As Long
lProject = 12
If oProjectDet.SeekByProject(eSeekMode.smGreaterOrEqual, lProject, 0) And oProjectDet.pProject = lProject Then
    ' Browse using the key 'PJD_PRJ' (project) and positioned on the record found by SeekByProject
    lSysNum = oProjectDet.Browse(True)
Else
    ' Browse using the last key that was manually selected and positioned at the beginning of the file
    lSysNum = oProjectDet.Browse(False)
End If