CnPack Forum


 
Subject: 1.1.5.957的格式化代码的if else每次多一行
hq200306
灌水科科长
Rank: 3Rank: 3



UID 67758
Digest Posts 0
Credits 106
Posts 36
点点分 106
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: 3Rank: 3



UID 67758
Digest Posts 0
Credits 106
Posts 36
点点分 106
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 6814
Posts 3580
点点分 6814
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2019-1-4 12:36  Profile | Blog | P.M. 
正在想办法处理。
Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


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




All times are GMT++8, the time now is 2024-10-10 18:06

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

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