Delphi 属性多参数使用
来源:互联网 发布:守望先锋手机数据查询 编辑:程序博客网 时间:2024/06/04 18:53
unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs,FuncBaseClass, StdCtrls;type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end; TTable = class private function GetCellValue(irow, icol: Integer): string; procedure SetCellValue(irow, icol: Integer; const Value: string); public property CellValue[irow:Integer;icol:Integer]: string read GetCellValue write SetCellValue; default; end;var Form1: TForm1;implementation{$R *.dfm}{ TTable }function TTable.GetCellValue(irow, icol: Integer): string;begin ShowMessage('GetCellValue');end;procedure TTable.SetCellValue(irow, icol: Integer; const Value: string);begin ShowMessage(Value);end;procedure TForm1.Button1Click(Sender: TObject);var tt:TTable;begin tt:=TTable.Create; tt[1,1]; tt[1,1]:='hello' ;end;end.
以上代码虽然没有指定那个属性,但是他会自动匹配到CellValue字段
0 0
- Delphi 属性多参数使用
- delphi中使用多线程及函数调用多参数
- 在Delphi中使用指针参数
- Struts2使用action属性来接收参数
- struts2中使用action属性传递参数
- 使用类的属性保存数据库连接参数
- 使用Delphi,显示ActiveX控件的属性页方法
- delphi操作excel时使用的属性列表
- 在Delphi的属性 property中使用数组
- Delphi SelectSingleNode的使用 根据节点属性获取该节点
- delphi 操作excel时使用的属性列表
- Delphi 中将对象作为参数传递的使用
- Delphi中StrToDateTime函数TFormatSettings参数的使用
- Delphi中StrToDateTime函数TFormatSettings参数的使用
- Delphi中StrToDateTime函数TFormatSettings参数的使用
- delphi中类的属性不能作为可变参数传递给方法
- 属性参数
- Delphi组件属性
- Longest Valid Parentheses
- HashMap死循环问题分析
- 快速排序C++实现
- mybatis result maps collection already contains value
- jni编译文档(Eclipse)
- Delphi 属性多参数使用
- 由多线程内存溢出产生的实战分析
- 多线程编程——互斥对象
- 错误:Undefined symbols for architecture armv7
- 分布式锁redis实现
- HDU5762 Teacher Bo 多校联赛第三场1011
- Hibernate中通过HQL/JPQL查询的方式实现动态数据获取
- hdu5755Gambler Bo
- 基本的sql语句