Expand|Select|Wrap|Line Numbers
- Dim values As New System.Collection.ArrayList
- Function AddValues(newValue As Decimal) As Decimal
- values.Add(newValues)
- AddValues=newValues
- End Function
- Function GetMedian() As Decimal
- Dim count As Integer =values.Count
- If (count>0)
- values.Sort()
- GetMedian=values(count\2)
- End If
- End Function
I am new to Function and i want 2 changes in this code
1) i want to use newValue as Array in function AddValue
2) i want to call AddValue in GetMedian Function as Argument
because i want to calulate medians of list of arrays which are grouped in AddValue Function
or
tell me something to use by which i can group the (values)* by the field i want
i hope you undertood what i am saying....Please help me with this
i need to solve this urgent
Thanks in advance
Vijeta