Click or drag to resize

ICriteriaGetCriterion Method

Get an existing criterion for a regular field. TableAndFieldName returnvalue is on the format 'tablename.fieldname' Get an SOCriterion object from the collection

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SOCriterion GetCriterion(
	string TableAndFieldName
)

Parameters

TableAndFieldName
Type: SystemString
The name of the table and field the criterion you want to get searches in ("tablename.fieldname")

Return Value

Type: SOCriterion
SoCriterion
Examples

GetCriterion

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
    Dim criterion As SOCriterion = selection.Criteria.GetCriterion("contact.naume")
    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