IFindContactsWithNumSalesNotCompletedTotal Method |
Returns list of contacts with matching sale counters. Search by total number of sales.
Namespace:
SuperOffice.COM.SuperOfficeDB
Assembly:
SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
SyntaxSOContacts ContactsWithNumSalesNotCompletedTotal(
EnSaleStatus Status,
IListTextItem amountclass,
EnFindOperator op,
int Value
)
Function ContactsWithNumSalesNotCompletedTotal (
Status As EnSaleStatus,
amountclass As IListTextItem,
op As EnFindOperator,
Value As Integer
) As SOContacts
Dim instance As IFind
Dim Status As EnSaleStatus
Dim amountclass As IListTextItem
Dim op As EnFindOperator
Dim Value As Integer
Dim returnValue As SOContacts
returnValue = instance.ContactsWithNumSalesNotCompletedTotal(Status,
amountclass, op, Value)
SOContacts^ ContactsWithNumSalesNotCompletedTotal(
[InAttribute] EnSaleStatus Status,
[InAttribute] IListTextItem^ amountclass,
[InAttribute] EnFindOperator op,
[InAttribute] int Value
)
Parameters
- Status
- Type: SuperOffice.COM.SuperOfficeDBEnSaleStatus
- amountclass
- Type: SuperOffice.COM.SuperOfficeDBIListTextItem
The amountclass of the sales, NULL equals all amountclasses - op
- Type: SuperOffice.COM.SuperOfficeDBEnFindOperator
- Value
- Type: SystemInt32
Number of sales 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
enSaleAllCounters = 4
enFindOpLessThanOrEqual = 4
Set objSO = CreateObject("SuperOfficeDB.Database")
If not (objSO is nothing) Then
objSO.login "USERID", "PASSWORD"
Set myConts = objSO.Find.ContactsWithNumSalesNotCompletedTotal(enSaleAllCounters, Nothing, 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