Use Static or ReDim to dimension arrays in this procedure

You are trying to use DimLANDIM to create a fixed array (an array having a specific number of elements) at the procedure level2W6W4TC.  To create a fixed array, use Dim at the module level1HVGZGT or StaticCC4JTI at the procedure level.  You may also choose to create a dynamic array at the procedure level using ReDimQ1CGU1.

Arrays created with Static are persistent arrays whose values are kept in memory after the procedure is finished running.  Procedure-level dynamic arrays are released automatically at procedure exit.