See Also

FieldCollection Class  | FieldCollection Members

Language

Visual Basic

C#

Show All

fieldName
Specifies the field name to look for in the collection.
See Also Languages ActiveReports Send feedback to Data Dynamics

Contains Method

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

[Visual Basic]
Public Function Contains( _    ByVal fieldName As String _ ) As Boolean
[C#]
public bool Contains(    string fieldName );

Parameters

fieldName
Specifies the field name to look for in the collection.

Return Type

Boolean. Returns True if the collection contains an element with the specified name, False otherwise.

Example

[C#] 

private void UnboundGrp_ReportEnd(object sender, System.EventArgs eArgs) 

    if (this.Fields.Contains("DiscountTotal")) 
    { 
        System.Windows.Forms.MessageBox.Show ("Contains Discount Total"); 
    } 
}

[Visual Basic] 

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

FieldCollection Class  | FieldCollection Members

 

 


Copyright © 2004-2005 Data Dynamics, Ltd. All rights reserved.