Quote: "1. Can I declare an unknown size multi-dimensional global array ?"
dim MyArray(0,0)
global MyArray_Cols as integer = 0
global MyArray_Rows as integer = 0
` Make wider
inc MyArray_Cols
dim MyArray( MyArray_Cols, MyArray_Rows )
` Make longer
inc MyArray_Rows
dim MyArray( MyArray_Cols, MyArray_Rows )
Quote: "2. Can I pass a multi-dimensional array to a function ?"
Yes, sort of when using my plug-ins, but I advise you not to go there unless you are adventurous or experienced.
Quote: "As I know, all DIM arrays are global"
Arrays are global unless you specify otherwise
function MyFunc()
local dim MyArray(10)
endfunction