Can someone please clarify the purpose of MIN and MAX
when declaring array parameters in a Function? I've used VB and
QB extensively in the past and the use of MIN and MAX seems a
bit alien to me.
Is its use optional? For instance, if I have an array declared
as below:
DIM MyList(1 TO 30) AS INTEGER
Can I define my function as follows:
DECLARE FindAverage (TheList())
.
.
FUNCTION FindAverage TheList() AS INTEGER
or must I define the function as:
FUNCTION FindAverage TheList(MIN, 1) AS INTEGER
------------------
when declaring array parameters in a Function? I've used VB and
QB extensively in the past and the use of MIN and MAX seems a
bit alien to me.
Is its use optional? For instance, if I have an array declared
as below:
DIM MyList(1 TO 30) AS INTEGER
Can I define my function as follows:
DECLARE FindAverage (TheList())
.
.
FUNCTION FindAverage TheList() AS INTEGER
or must I define the function as:
FUNCTION FindAverage TheList(MIN, 1) AS INTEGER
------------------
Comment