This is a migrated thread and some comments may be shown as answers.

Pass group of values as user function parameters

0 Answers 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Fatima
Top achievements
Rank 1
Fatima asked on 13 Jan 2013, 09:20 AM
Hi
I need your help: I have  report. I must write a user function to handle my values in separate groups.
So I need to pass every values that exist in each groups by expression such as :
= MyFunction(Fields.doneValue)

and in code behind (c#):
public static double? MyFunction(List<double?> valueList)
{
    double? result;
    foreach(var itm in valueList)
     {
          if(item.HasValue)
          result += item.value;
     }
    return result;
}


but this code has error due to its parameter type, List of values can't pass to user function.
what do I do??

No answers yet. Maybe you can help?

Tags
General Discussions
Asked by
Fatima
Top achievements
Rank 1
Share this question
or