property MyArrayProp[Index: Integer] read GetMyArrayProp write SetMyArrayProp;然后你按ctrl+shift+c(关掉金山词霸先),Delphi替你生成函数框架。

解决方案 »

  1.   

    property MyArrayProp[Index: Integer] : Integer read GetMyArrayProp write SetMyArrayProp;
      

  2.   

    我是这样定义的
      public
        property StringArray[X,Y: Integer]: String read GetString write SetString;
     函数框架库也生成了,但在程序中用不了。
      

  3.   

    private
      function GetCells(ACol, ARow: Integer): string;
      procedure SetCells(ACol, ARow: Integer; const Value: string);
    public
      property Cells[ACol, ARow: Integer]: string read GetCells write SetCells;
    end;
      

  4.   

    var
      a: YourClass;a := YourClass.Create;
    a.StringArray[1, 1] := 'Hello';
      

  5.   

    用TList的派生类代替数组了,数组不好用的,TList是动态的,比数组好多了
      

  6.   

    可还是用不了。一用就出现溢出错误。
    不知为什么,谁能帮帮手。SOS