ActiveReports 8
Contains Method
See Also  Example
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports.Data Namespace > FieldCollection Class : Contains Method

Glossary Item Box

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

Overload List

OverloadDescription
Contains(String)

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

 
Contains(Field)

Returns whether the field collection contains the specified field.

 

Example

C#Copy Code
private void UnboundGrp_ReportEnd(object sender, System.EventArgs eArgs)
{
    if (this.Fields.Contains("DiscountTotal"))
    {
        System.Windows.Forms.MessageBox.Show ("Contains Discount Total");
    }
}
Visual BasicCopy Code
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

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also