ActiveReports 18 .NET Edition
MESCIUS.ActiveReports Assembly / GrapeCity.ActiveReports.Data Namespace / FieldCollection Class / Contains Method
Example

In This Topic
    Contains Method (FieldCollection)
    In This Topic

    Returns a value indicating whether the field collection contains a field with the specified name.

    Overload List
    OverloadDescription

    Returns whether the field collection contains a field with the specified name.

     

    Returns whether the field collection contains the specified field.

     
    Example
    private void UnboundGrp_ReportEnd(object sender, System.EventArgs eArgs)
    {
        if (this.Fields.Contains("DiscountTotal"))
        {
            System.Windows.Forms.MessageBox.Show ("Contains Discount Total");
        }
    }
    Private Sub UnboundGrp_ReportEnd(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportEnd
        If Me.Fields.Contains("DiscountTotal") Then
            MsgBox("contains discount total")
        End If
    End Sub
    See Also