IFindContactsWithNumActivitiesNotCompletedPeriod Method |
Returns list of contacts with matching appointment/document counters. Search by total number of appointments/documents.
Namespace:
SuperOffice.COM.SuperOfficeDB
Assembly:
SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
SyntaxSOContacts ContactsWithNumActivitiesNotCompletedPeriod(
EnAppointType Type,
IListTextItem intent,
EnDirection direction,
EnFindOperator op,
int Value
)
Function ContactsWithNumActivitiesNotCompletedPeriod (
Type As EnAppointType,
intent As IListTextItem,
direction As EnDirection,
op As EnFindOperator,
Value As Integer
) As SOContacts
Dim instance As IFind
Dim Type As EnAppointType
Dim intent As IListTextItem
Dim direction As EnDirection
Dim op As EnFindOperator
Dim Value As Integer
Dim returnValue As SOContacts
returnValue = instance.ContactsWithNumActivitiesNotCompletedPeriod(Type,
intent, direction, op, Value)
SOContacts^ ContactsWithNumActivitiesNotCompletedPeriod(
[InAttribute] EnAppointType Type,
[InAttribute] IListTextItem^ intent,
[InAttribute] EnDirection direction,
[InAttribute] EnFindOperator op,
[InAttribute] int Value
)
Parameters
- Type
- Type: SuperOffice.COM.SuperOfficeDBEnAppointType
- intent
- Type: SuperOffice.COM.SuperOfficeDBIListTextItem
The intention of the activities, NULL equals all intentions - direction
- Type: SuperOffice.COM.SuperOfficeDBEnDirection
- op
- Type: SuperOffice.COM.SuperOfficeDBEnFindOperator
- Value
- Type: SystemInt32
Number of activities in total to compare with the operator
Return Value
Type:
SOContactsSOContacs - a collection of contacts matching the query
ExamplesThis text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
Dim objSO
Dim myConts
Dim myCont
enAppointAllCounters = 10
enDirectionAllCounters = 3
enFindOpLessThanOrEqual = 4
Set objSO = CreateObject("SuperOfficeDB.Database")
If not (objSO is nothing) Then
objSO.login "USERID", "PASSWORD"
Set myConts = objSO.Find.ContactsWithNumActivitiesNotCompletedPeriod(enAppointAllCounters, Nothing, enDirectionAllCounters, enFindOpLessThanOrEqual, 1)
Set myCont = myConts.GetFirst
While Not myConts.EOF
msg = msg & myCont.Name & vbCrLf
Set myCont = myConts.GetNext
Wend
If msg <> "" Then
MsgBox msg, vbInformation & vbOKOnly, "Contacts matching search"
Else
MsgBox "No match"
End If
Else
MsgBox "Could not log in"
End If
Set objSO = Nothing
See Also