ActiveReports 8
Create Method
See Also 
GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports.Expressions.ExpressionObjectModel Namespace > Parameter Class : Create Method

name
The parameter name.
prompt
The text to display to a user when prompting the a for the parameter's value.
dataType
The data type of the new parameter.
state
Specifies the state of the new parameter.
nullable
Specifies whether the new parameter is allowed to be Null.
allowBlank
Specifies whether an empty string is a valid value for the new parameter.
hidden
Specifies whether parameter should not be displayed to the user.
multiValue
Specifies whether the new parameter accepts multiple values.
usedInQuery
Specifies whether the new parameter is used in a query.
multiline
Specifies whether the parameter value supposes to be multiline.
dateOnly
Indicates whether the user should be prompted for both date and time or only the date. Applicable to DateTime parameters.

Glossary Item Box

Creates new instance of Parameter with specified properties.

Syntax

Visual Basic (Declaration) 
Public Shared Function Create( _
   ByVal name As System.String, _
   ByVal prompt As System.String, _
   ByVal dataType As ParameterType, _
   ByVal state As ParameterState, _
   ByVal nullable As System.Boolean, _
   ByVal allowBlank As System.Boolean, _
   ByVal hidden As System.Boolean, _
   ByVal multiValue As System.Boolean, _
   ByVal usedInQuery As System.Boolean, _
   ByVal multiline As System.Boolean, _
   ByVal dateOnly As System.Boolean _
) As Parameter
C# 
public static Parameter Create( 
   System.string name,
   System.string prompt,
   ParameterType dataType,
   ParameterState state,
   System.bool nullable,
   System.bool allowBlank,
   System.bool hidden,
   System.bool multiValue,
   System.bool usedInQuery,
   System.bool multiline,
   System.bool dateOnly
)

Parameters

name
The parameter name.
prompt
The text to display to a user when prompting the a for the parameter's value.
dataType
The data type of the new parameter.
state
Specifies the state of the new parameter.
nullable
Specifies whether the new parameter is allowed to be Null.
allowBlank
Specifies whether an empty string is a valid value for the new parameter.
hidden
Specifies whether parameter should not be displayed to the user.
multiValue
Specifies whether the new parameter accepts multiple values.
usedInQuery
Specifies whether the new parameter is used in a query.
multiline
Specifies whether the parameter value supposes to be multiline.
dateOnly
Indicates whether the user should be prompted for both date and time or only the date. Applicable to DateTime parameters.

Return Value

New Parameter instance.

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