Click or drag to resize

ICriteriaGetUdefCriterion Method

Get an existing criterion for a userdefined field

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

Parameters

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

Return Value

Type: SOCriterion
SOCriterion
Examples

GetUdefCriterion

VB
Dim db As New Database
If db.Login("<username>", "<password>") Then
    Dim selection As SOSelection = db.GetSelection(26)
    'Get the criterion based on table and field name
    'The field name must be an exact match, remember the colon
    Dim criterion As SOCriterion = selection.Criteria.GetUdefCriterion(EnUDefType.enUDefContact, "Creative contact:")
    If Not criterion Is Nothing Then
        MsgBox(criterion.Identity)
    Else
        MsgBox("did not find criterion")
    End If
Else
    MsgBox("failed to log in")
End If

See Also