I'm new at VB and I'm having a hard time doing something that should be very simple.
I'm trying to make an array of n+1 length and I keep getting "Constant expression required" when running the following code
Function binomial(n As Integer, p As Double)
Dim probabilities(0 To n) As Double
End Function
I understand that the arguments used to build the array must be constants, but do I create one from the argument of the function?
Thank you in advance