试了下,必须这样才行 TintAry=array of integer ;
 property ary:TintAry read GetIntAry write SetIntAry;//这样就是错的
property ary:array of integer read GetIntAry write SetIntAry;就是觉得重新定义类型有点麻烦,有没其他办法 ? 谢谢

解决方案 »

  1.   

    property Objects[Index: Integer]: TObject read GetObject write SetObject;
    property Pixels[X, Y: Integer]: TColor read GetPixel write SetPixel;
    property Values[const Name: string]: string read GetValue write SetValue;type
      TStringArray = class
      public
        property Strings[Index: Integer]: string ...; default;
        ...
      end;
      

  2.   

    TFArray : array of integer;
    TTest=class
    privatepublic
    end;
      

  3.   

    TFArray : array of integer;
    TTest=class
    private
       FTest : TFarray;public
       property Test : TFarray read GetFTest write SetFTest ;
    end;
    不好意思!刚才发错了!呵呵