Click or drag to resize

ICriteriaAdd Method

Add the criterion Add a new SoCriterion to the collection

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
void Add(
	SOCriterion NewCriterion
)

Parameters

NewCriterion
Type: SuperOffice.COM.SuperOfficeDBSOCriterion
The SOCriterion object to add
Examples

Add

VB
Dim db As New Database
If db.Login("<username>", "<password>") Then
    Dim selection As SOSelection = db.GetSelection(26)
    Dim criterion As SOCriterion = selection.Criteria.NewCriterion("contact.name", EnCriterionOperator.enBeginsWith)
    criterion.Values.AddString("super")

    selection.Criteria.Add(criterion)

    selection.Save()
    MsgBox("criterion added")
Else
    MsgBox("failed to log in")
End If

See Also