Pass a multidimensional array as a parameter in Delphi

前端 未结 4 1400
你的背包
你的背包 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:35

    I don't have Delphi at hands, but I think this should work:

    type
      TIntArray = array of Integer;
    
    ...
    
    constructor TMyClass.Create (MyParameter : array of TIntArray);
    begin
    ...
    end;
    

提交回复
热议问题