| |
| Seeks a Project by its group code. |
| |
 |
VARIANT_BOOL SeekByGroup ( enum eSeekMode eSeekMode, BSTR bsGroupCode, LONG lNumber ) |
|
| |
| Key information |  | This method uses key number 8 (See SwapKey). |  | This is a unique key. |
| | | | Key segment information | | | | | Parameters | | eSeekMode | | [in] A value of the 'eSeekMode' enumeration. | | bsGroupCode | | [in] The group code of the project you want to seek. | | 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 |
|
|
|
| |
| Samples |
| |
 |
C++ |
| |
// Seek all projects in group 'Acc'
CString strGroupCode = "Acc";
pProject->SeekByGroup (smGreater, (LPCSTR)strGroupCode, 0);
while (pProject->GetDBStatus () == 0 && (CString)pProject->pGroupCode == strGroupCode)
{
// Process record data
pProject->GetNext ();
}
|
|
 |
C# |
| |
// Seek all projects in group 'Acc'
string strGroupCode = "Acc";
oProject.SeekByGroup (eSeekMode.smGreater, strGroupCode, 0);
while (oProject.GetDBStatus () == 0 && oProject.pGroupCode.ToString () == strGroupCode)
{
// Process record data
oProject.GetNext ();
}
|
|
 |
VBS |
| |
' Seek all projects in group 'Acc'
Dim strGroupCode
strGroupCode = "Acc"
Call oProject.SeekByGroup(smGreater, strGroupCode, 0)
While oProject.GetDBStatus() = 0 And oProject.pGroupCode = strGroupCode
' Process record data
Call oProject.GetNext()
Wend
|
|
 |
VB.NET |
| |
' Seek all projects in group 'Acc'
Dim strGroupCode As String
strGroupCode = "Acc"
oProject.SeekByGroup(eSeekMode.smGreater, strGroupCode, 0)
While oProject.GetDBStatus() = 0 And oProject.pGroupCode = strGroupCode
' Process record data
oProject.GetNext()
End While
|
|