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