CnPack Forum


 
Subject: 关于只写属性, 用 Ctrl + Shift + C 后自动加上了 read ...
leovin
新警察
Rank: 1



UID 40756
Digest Posts 0
Credits 10
Posts 3
点点分 10
Reading Access 10
Registered 2008-8-8
Status Offline
Post at 2008-8-8 10:51  Profile | Blog | P.M. 
关于只写属性, 用 Ctrl + Shift + C 后自动加上了 read ...

如:
TSelf = class
private
  FPro: string;
public
  property Pro: string write FPro;
  function abc: string;   // 光标在此处 Ctrl + Shift + C 后, 类代码如下
end;
// ----------------------------------
TSelf = class
private
  FPro: string;
public
  property Pro: string write FPro read FPro; // read FPro 自动加上了~
  function abc: string;   
end;
Top
 




All times are GMT++8, the time now is 2024-11-23 10:47

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.006231 second(s), 8 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP