ParameterValue Classe
Indique les propriétés permettant d'extraire et de définir le type de paramètre.
Pour obtenir la liste de tous les membres de ce type, voir les membres de la classe ParameterValue.
System.Object
ParameterValue
[Visual Basic]
Public Class ParameterValue
[C#]
public class ParameterValue
Exemple
[Visual Basic]
Private Function GetParamValue(ByVal paramName As String) As _
ParameterValue
Dim paramFields As New ParameterFields()
Dim paramField As New ParameterField()
Dim paramValues As New ParameterValues()
Dim paramValue As ParameterValue
paramFields = CrystalReportViewer1.ParameterFieldInfo
paramField = paramFields.Item(paramName)
paramValues = paramField.CurrentValues
paramValue = paramValues.Item(0)
Return paramValue
End Function
[C++]
static ParameterValue* GetParamValue
(String* paramName)
{
ParameterFields* paramFields = new ParameterFields ();
ParameterField* paramField = new ParameterField ();
ParameterValues* paramValues = new ParameterValues ();
ParameterValue* paramValue;
paramFields = crystalReportViewer1->ParameterFieldInfo;
paramField = paramFields ->Item [paramName];
paramValues = paramField->CurrentValues;
paramValue = paramValues->Item [0];
return paramValue;
};
[C#]
private ParameterValue GetParamValue
(string paramName)
{
ParameterFields paramFields = new ParameterFields ();
ParameterField paramField = new ParameterField ();
ParameterValues paramValues = new ParameterValues ();
ParameterValue paramValue;
paramFields = crystalReportViewer1.ParameterFieldInfo;
paramField = paramFields [paramName];
paramValues = paramField.CurrentValues;
paramValue = paramValues [0];
return paramValue;
}
Configuration requise
Espace de noms CrystalDecisions.Shared
Assembly CrystalDecisions.Shared (CrystalDecisions.Shared.dll)
Voir aussi
ParameterValue Membres | CrystalDecisions.Shared Espace de noms
©2005 Business Objects SA. Tous droits réservés.
Business Objects SA. http://www.france.businessobjects.com/ Services de support http://www.businessobjects.com/support/ |