ActiveReports3 Request technical support
Key Property
See Also  Example


Unique name of the parameter.

Syntax

Visual Basic (Declaration) 
Public Property Key As String
Visual Basic (Usage)Copy Code
Dim instance As Parameter
Dim value As String
 
instance.Key = value
 
value = instance.Key
C# 
public string Key {get; set;}

Return Value

A string value that represents the unique name of the parameter.

Example

C#Copy Code
private void rptDataDynamics_ReportStart(object sender, System.EventArgs eArgs)
{
   
this.Parameters[0].DefaultValue = "Germany";
   
this.Parameters[0].Key = "country";
   
this.Parameters[0].Prompt = "Country: ";
   
this.Parameters[0].Tag = "some extra data";
   
this.Parameters[0].Type = Parameter.DataType.String;
}
Visual BasicCopy Code
Private Sub rptDD_ReportStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.ReportStart
    Me.Parameters(0).DefaultValue = "Germany"
    Me.Parameters(0).Key = "country"
    Me.Parameters(0).Prompt = "Country: "
    Me.Parameters(0).Tag = "Some extra data"
    Me.Parameters(0).Type = Parameter.DataType.String
End Sub

Remarks

Used to reference the parameter in the parameters collection and to locate the different placeholder locations in the SQL query where the parameter value will be inserted.

See Also