type
TTest=class
private
FSZ:Array of Array of String;
public
procedure SetSZ(index:Integer);
Function GetSZ(index:Integer;const value:String);
property SZ[index:Integer] read GetSZ write SetSZ;//*
end;//*我不知道这样行不行,反正如果FSZ这样声明 FSZ:Array of String;应该可以,
请问声明一个属性它的类型为多维数组时,应该怎样写了!
TTest=class
private
FSZ:Array of Array of String;
public
procedure SetSZ(index:Integer);
Function GetSZ(index:Integer;const value:String);
property SZ[index:Integer] read GetSZ write SetSZ;//*
end;//*我不知道这样行不行,反正如果FSZ这样声明 FSZ:Array of String;应该可以,
请问声明一个属性它的类型为多维数组时,应该怎样写了!
解决方案 »
- XE3的帮助文件是怎么回事?不提供帮助文档?
- 找Delphi工作
- 做个Console式界面的组件
- (!急!急!急 )请问TADOStoredProc返回多个记录集合,怎么取得啊?
- 关于数据临界值的问题
- 我是菜鸟,刚刚学delphi,请问dbgrideh.dcu是什么啊。
- delphi连接数据库和pb有何不同,作用范围一样吗?我是一个新手.谢谢.....
- 高分请教:如何在DELPHI 将金额数据传送到顾客显示屏上?
- 为什么数据库定义成VarChar类型了,存进去用trim,还是后面有空格,我用的是clientdataset.insertrecord
- (傻傻地问)如何把两幅图片做成一个按钮?
- 为什么我用adoconnection连接access数据库~~在运行时adoconnection要提示我输入密码???
- 关于窗体激活时的触发事件。
TTest=class
private
FSZ:Array of Array of String;
public
procedure SetSZ(index:Integer; value: String);
Function GetSZ(index:Integer): string;
property SZ[index:Integer] read GetSZ write SetSZ;//*
end;
和
SET
方法的参数列反了..还有, SZ必须标明是什么类型的?TTest=class
private
FSZ:Array of Array of String;
procedure SetSZ(index:Integer; value: String);
Function GetSZ(index:Integer): string;
public
property SZ[index: Integer]: String read GetSZ write SetSZ;//*
end;在这方面, DELPHI有一个方法可以自动生成的:
先输入property SZ[index: Integer]: String;
在把光标移到这一行上, 点击鼠标右键, 在弹出的菜单中选择"Complete class at cursor"
项即可以生成其它的代码. 也可以按"CTRL + SHIFT + C"键