combit List & Label 30 - .NET Help
combit.Reporting Namespace / DesignerFunction Class / EvaluateFunction Event


EvaluateFunction Event

The event EvaluateFunction has to be handled in order to activate the function. You can gain access to the parameters indicated by the user through event arguments.

Syntax
'Declaration
 
Public Event EvaluateFunction As EvaluateFunctionHandler
 
Event Data

The event handler receives an argument of type EvaluateFunctionEventArgs containing data related to this event. The following EvaluateFunctionEventArgs properties provide information specific to this event.

PropertyDescription
Number of decimal places.  
 
Returns the first parameter.  
Returns the second parameter.  
Returns the third parameter.  
Returns the fourth parameter.  
Number of parameters passed.  

The data type of the result.

 

The data value of the result.

 
Example
private void designerFunction1_EvaluateFunction(object sender, EvaluateFunctionEventArgs e)
{
     e.ResultValue = (int.Parse(e.Parameter1.ToString()) + int.Parse(e.Parameter2.ToString()));
}
Requirements

Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
.NET: .NET Framework 4.8, .NET 6, .NET 8, .NET 9

See Also