CnPack Forum


 
Subject: 1.1.5.957的格式化代码的if else每次多一行
hq200306
普通灌水员
Rank: 2



UID 67758
Digest Posts 0
Credits 52
Posts 18
点点分 52
Reading Access 10
Registered 2012-12-1
Status Offline
Post at 2019-1-3 17:21  Profile | Blog | P.M. 
1.1.5.957的格式化代码的if else每次多一行

procedure TForm13.UniQuery1f11SetText(Sender: TField; const Text: string);
begin
  if Text = '' then
    Sender.Value := null


  else
    Sender.Value := Text;
end;
Top
hq200306
普通灌水员
Rank: 2



UID 67758
Digest Posts 0
Credits 52
Posts 18
点点分 52
Reading Access 10
Registered 2012-12-1
Status Offline
Post at 2019-1-3 17:22  Profile | Blog | P.M. 
//如果代码是这样就格式正确
procedure TForm13.UniQuery1f11SetText(Sender: TField; const Text: string);
begin
  if Text = '' then
    Sender.Value := null
  else
    Sender.Value := Text;
end;
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6561
Posts 3460
点点分 6561
Reading Access 102
Registered 2004-3-28
Status Online
Post at 2019-1-4 12:36  Profile | Blog | P.M. 
正在想办法处理。
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6561
Posts 3460
点点分 6561
Reading Access 102
Registered 2004-3-28
Status Online
Post at 2019-1-7 09:40  Profile | Blog | P.M. 
958已经修复。
Top
 




All times are GMT++8, the time now is 2019-7-23 07:41

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

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