Click or drag to resize

ICriteriaRemoveUdefCriterion Method

Remove the criterion for a userdefined field Remove a criterion from the collection

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
void RemoveUdefCriterion(
	EnUDefType UDefType,
	string FieldLabel
)

Parameters

UDefType
Type: SuperOffice.COM.SuperOfficeDBEnUDefType
FieldLabel
Type: SystemString
The label of the user defined field you want to search
Examples

Remove

VB
Dim db As New Database
If db.Login("<username>", "<password>") Then
    Dim selection As SOSelection = db.GetSelection(26)
    'Remove a criterion from the collection 
    Dim criterion As SOCriterion = selection.Criteria.GetCriterion("contact.name")
    selection.Criteria.Remove(criterion)

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

RemoveUdefCriterion

VB
Dim db As New Database
If db.Login("<username>", "<password>") Then
    Dim selection As SOSelection = db.GetSelection(25)
    'Remove a criterion from the collection 
    selection.Criteria.RemoveUdefCriterion(EnUDefType.enUDefContact, "Project coordinator:")
    selection.Save()
    MsgBox("criterion removed")
Else
    MsgBox("failed to log in")
End If

See Also