Pass a multidimensional array as a parameter in Delphi

前端 未结 4 1398
你的背包
你的背包 2021-01-20 15:17

I\'d like to pass a multi-dimensional array to a constructor like so:

constructor TMyClass.Create(MyParameter: array of array of Integer);
begin
  LocalField         


        
4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-20 15:24

    If a type is used before as suggested in the answer, please note that you are passing it as a reference, see:

    https://blog.spreendigital.de/2016/08/01/pass-a-multidimensional-array-as-a-parameter-with-a-hidden-caveat/

提交回复
热议问题