ParameterFieldDefinitions paraFieldDefinitions;ParameterFieldDefinition paraFieldDefinition;ParameterValues paraVals = new ParameterValues();
ParameterDiscreteValue paraDiscreatValue = new ParameterDiscreteValue(); paraDiscreatValue.Value = tbxCustomerName.Text;
paraFieldDefinitions = rptDoc.DataDefinition.ParameterFields; paraFieldDefinition = paraFieldDefinitions["customerName"]; //could "customerName" field parameter hold more than one value?paraVals = paraFieldDefinition.CurrentValues; //why we clear this? this will clear off the values that was assigned from the //previouse line.paraVals.Clear(); //add the parameter values to the collectionparaVals.Add(paraDiscreatValue); //what happense here?paraFieldDefinition.ApplyCurrentValues(paraVals);