Project::SeekByOpenPrj (Interface: Project)
 
Seeks an open Project by its project number.
 
VARIANT_BOOL SeekByOpenPrj (
    enum eSeekMode eSeekMode,
    LONG lNumber
)
 
Key information
This method uses key number 2 (See SwapKey).
This is a unique key.
This is a null key, only the records where pClosed is false are in the index.
 
Key segment information
Segment NameTypeOrderCollation
pNumberLONG (unsigned)Ascending-
pClosedVARIANT_BOOLAscending-
 
Parameters
eSeekMode
[in] A value of the 'eSeekMode' enumeration.
lNumber
[in] The number of the project you want to seek.
 
Return value
True if the record with the given properties was found, otherwise false.
 
See Also
CreateProject
 
Samples
 
C++
 
// Seek all open projects
pProject->SeekByOpenPrj (smFirst, 0);
while (pProject->GetDBStatus () == 0)
{
    // Process record data

    pProject->GetNext ();
}

C#
 
// Seek all open projects
oProject.SeekByOpenPrj (eSeekMode.smFirst, 0);
while (oProject.GetDBStatus () == 0)
{
    // Process record data

    oProject.GetNext ();
}

VBS
 
' Seek all open projects
Call oProject.SeekByOpenPrj(smFirst, 0)
While oProject.GetDBStatus() = 0
    ' Process record data

    Call oProject.GetNext()
Wend

VB.NET
 
' Seek all open projects
oProject.SeekByOpenPrj(eSeekMode.smFirst, 0)
While oProject.GetDBStatus() = 0
    ' Process record data

    oProject.GetNext()
End While