|
Seeks a Project by its contact-firm link. |
|
|
VARIANT_BOOL SeekByLink ( enum eSeekMode eSeekMode, LONG lCtcNum, enum eFirmType eFirmType, LONG lFrmNum, LONG lFrmSubNum, LONG lNumber ) |
|
|
Key information | | This method uses key number 11 (See SwapKey). | | This is a unique key. |
| | Key segment information | | | Parameters | eSeekMode | [in] A value of the 'eSeekMode' enumeration. | lCtcNum | [in] The number of the contact that the project you want to seek is assigned to. | eFirmType | [in] A value of the 'eFirmType' enumeration. | lFrmNum | [in] The number of the firm that the project you want to seek is assigned to. | lFrmSubNum | [in] The subnumber of the firm that the project you want to seek is assigned to. | 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 for contact with number 17, working for customer with number 12/0
DWORD dwCtcNum = 17, dwFrmNum = 12, dwFrmSubNum = 0;
eFirmType eFT = ftCustomer;
pProject->SeekByLink (smGreater, dwCtcNum, eFT, dwFrmNum, dwFrmSubNum, 0);
while (pProject->GetDBStatus () == 0 && pProject->pCtcNum.lVal == dwCtcNum && pProject->pFrmType.bVal == eFT && pProject->pFrmNum.lVal == dwFrmNum && pProject->pFrmSubNum.lVal == dwFrmSubNum)
{
// Process record data
pProject->GetNext ();
}
|
|
|
C# |
|
// Seek all projects for contact with number 17, working for customer with number 12/0
int iCtcNum = 17, iFrmNum = 12, iFrmSubNum = 0;
eFirmType eFT = eFirmType.ftCustomer;
oProject.SeekByLink (eSeekMode.smGreater, iCtcNum, eFT, iFrmNum, iFrmSubNum, 0);
while (oProject.GetDBStatus () == 0 && (int)oProject.pCtcNum == iCtcNum && (eFirmType)Enum.ToObject(typeof(eFirmType), oProject.pFrmType) == eFT && (int)oProject.pFrmNum == iFrmNum && (int)oProject.pFrmSubNum == iFrmSubNum)
{
// Process record data
oProject.GetNext ();
}
|
|
|
VBS |
|
' Seek all projects for contact with number 17, working for customer with number 12/0
Dim dwCtcNum, dwFrmNum, dwFrmSubNum
Dim eFT
dwCtcNum = 17
dwFrmNum = 12
dwFrmSubNum = 0
eFT = ftCustomer
Call oProject.SeekByLink(smGreater, dwCtcNum, eFT, dwFrmNum, dwFrmSubNum, 0)
While oProject.GetDBStatus() = 0 And oProject.pCtcNum = dwCtcNum And oProject.pFrmType = eFT And oProject.pFrmNum = dwFrmNum And oProject.pFrmSubNum = dwFrmSubNum
' Process record data
Call oProject.GetNext()
Wend
|
|
|
VB.NET |
|
' Seek all projects for contact with number 17, working for customer with number 12/0
Dim ulCtcNum, ulFrmNum, ulFrmSubNum As ULong
Dim eFT As eFirmType
ulCtcNum = 17
ulFrmNum = 12
ulFrmSubNum = 0
eFT = eFirmType.ftCustomer
oProject.SeekByLink(eSeekMode.smGreater, ulCtcNum, eFT, ulFrmNum, ulFrmSubNum, 0)
While oProject.GetDBStatus() = 0 And oProject.pCtcNum = ulCtcNum And oProject.pFrmType = eFT And oProject.pFrmNum = ulFrmNum And oProject.pFrmSubNum = ulFrmSubNum
' Process record data
oProject.GetNext()
End While
|
|