procedure ClearArray(out SomeArray: array of integer);beginend;
because using array of integer expects a singly dimensioned array, and won''t accept arrays with two dimensions or more (I''ve tried).
I see what you mean about the number not mattering, if they''re variables. That actually helps out a hell of a lot because now I don''t need that mess of code I wrote before to abstract the numbers, I can just use a default variable to get my results as such:
Procedure Clear(var tmpArray: TArray);Var X,Y: Integer; Tmp: Integer;Begin Tmp = 0; // <- Actually this isn''t even necessary for X := Low(tmpArray) to High(tmpArray) do begin for Y := Low(tmpArray[Tmp]) to High(tmpArray[Tmp]) do begin tmpArray[X,Y] := 0; end; end;End;
But the question I have now is how the heck can I pass an array to a procedure like the one above, without a pre-defined array type (notice TArray would have to have been defined somewhere and the array would have to be of that exact type to be accepted by the procedure). Like I stated before I need to be able to accept and work on any two dimensional array a user might declare. I''m sure there is way to do that, there just has to be!