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
SyntaxSOCriterion GetUdefCriterion(
EnUDefType UDefType,
string FieldLabel
)
Function GetUdefCriterion (
UDefType As EnUDefType,
FieldLabel As String
) As SOCriterion
Dim instance As ICriteria
Dim UDefType As EnUDefType
Dim FieldLabel As String
Dim returnValue As SOCriterion
returnValue = instance.GetUdefCriterion(UDefType,
FieldLabel)
SOCriterion^ GetUdefCriterion(
[InAttribute] EnUDefType UDefType,
[InAttribute] 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:
SOCriterionSOCriterion
ExamplesGetUdefCriterion
Dim db As New Database
If db.Login("<username>", "<password>") Then
Dim selection As SOSelection = db.GetSelection(26)
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