Example #1
0
    // Makes an array, but automatically resizes the result
    public static object dnaMakeArrayAndResize(int rows, int columns, string unused, string unusedtoo)
    {
        object[,] result = ExampleFunctions.dnaMakeArray(rows, columns);
        return(ArrayResizer.dnaResize(result));

        // Can also call Resize via Excel - so if the Resize add-in is not part of this code, it should still work
        // (though calling direct is better for large arrays - it prevents extra marshaling).
        // return XlCall.Excel(XlCall.xlUDF, "Resize", result);
    }