CnPack Forum


 
Subject: 代码编辑器专家 赋值交换 Bug
jsea
新警察
Rank: 1



UID 651
Digest Posts 0
Credits 2
Posts 2
点点分 2
Reading Access 10
Registered 2005-1-17
Status Offline
Post at 2005-8-29 20:25  Profile | Blog | P.M. 
代码编辑器专家 赋值交换 Bug

赋值交换

case语句中,比如
case I of
  0: a := b;
end;

"0: a := b;" 赋值交换以后变成
"b := 0: a"
Top
felixsun
普通灌水员
Rank: 2



UID 231
Digest Posts 0
Credits 51
Posts 44
点点分 51
Reading Access 10
Registered 2003-11-25
Status Offline
Post at 2005-8-30 08:51  Profile | Blog | P.M. 
我想"赋值交换"是不解析语法的吧,他只是简单的把 ":="两边的东东掉换一下, 在"赋值交换"前调整一下回车我想不是很麻烦吧
Top
zjy
管理员
Rank: 9Rank: 9Rank: 9



UID 2
Digest Posts 6
Credits 2385
Posts 1543
点点分 2385
Reading Access 102
Registered 2002-12-16
Location China
Status Offline
Post at 2005-8-30 20:55  Profile | Site | Blog | P.M. 
多谢报告!

赋值交换现在的功能比较简单,以后版本会改进。




Zhou JingYu
CnPack Administrator
http://www.cnpack.org/
Top
jAmEs_
灌水部部长
Rank: 8Rank: 8



Medal No.1  
UID 886
Digest Posts 0
Credits 1134
Posts 600
点点分 1134
Reading Access 10
Registered 2005-6-5
Location 广东
Status Offline
Post at 2005-8-31 10:31  Profile | Blog | P.M. 
不知道这样的用处有多大?!
Top
loze2000
新警察
Rank: 1



UID 2223
Digest Posts 0
Credits 4
Posts 4
点点分 4
Reading Access 10
Registered 2006-5-30
Status Offline
Post at 2006-5-30 17:11  Profile | Blog | P.M. 
挺一下

比较喜欢这个功能
比如在数据库读写字段的时候
读出来为
{Tcontrol}.Text := FieldByName('FieldName').AsString;
....
...
...
So多行
要写入数据库的时候,就是要两边交换就行,这个功能就派上大用场了。

[ Last edited by loze2000 on 2006-5-30 at 17:13 ]
Top
my58876448
普通灌水员
Rank: 2



UID 2118
Digest Posts 0
Credits 58
Posts 58
点点分 58
Reading Access 10
Registered 2006-4-20
Status Offline
Post at 2006-5-31 08:37  Profile | Blog | P.M. 
这个我个人用的倒不多。一般读数据用楼上的,写用SQL了



[ Last edited by my58876448 on 2006-6-2 at 08:27 ]
Top
beta
新警察
Rank: 1



UID 348
Digest Posts 0
Credits 13
Posts 9
点点分 13
Reading Access 10
Registered 2004-3-23
Status Offline
Post at 2006-6-2 00:19  Profile | Site | Blog | P.M. 
还有这样的代码也有问题:

  if SomeCondition then X := Y;

不过,在最新的开发版里面已经修正了这个问题 :)




http://www.01cn.net
Top
 




All times are GMT++8, the time now is 2024-11-24 22:50

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

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