Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnVCL 组件包
» Delphi 编码的一点儿建议, 观 Examples 中的 VolumeCtrol 工程有感
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: Delphi 编码的一点儿建议, 观 Examples 中的 VolumeCtrol 工程有感
qhbo
新警察
UID 16870
Digest Posts 0
Credits 14
Posts 5
点点分 14
Reading Access 10
Registered 2007-6-8
Status Offline
#1
Post at 2007-6-8 11:56
Profile
|
Blog
|
P.M.
Delphi 编码的一点儿建议, 观 Examples 中的 VolumeCtrol 工程有感
在“系统音量 控制器示例程序” 程序中的代码中我发现作者以下代码比较常见:
with mmo1.Lines, CnVolumeCtrl1 do
。。。
with CnVolumeCtrl1, cbb1 do
。。。
个人认为在 With ... Do 语句中加入一个以上的变量名的代码极不易读,建议只保留一个。
纯属建议,
。
xjw100
灌水科科长
UID 1476
Digest Posts 0
Credits 134
Posts 74
点点分 134
Reading Access 10
Registered 2005-12-13
Location 桂林
Status Offline
#2
Post at 2007-6-8 18:18
Profile
|
Blog
|
P.M.
同意楼主观点。
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#3
Post at 2007-6-15 09:38
Profile
|
Blog
|
P.M.
小冬,再看看?
kendling
(小冬)
高级版主
MyvNet
UID 703
Digest Posts
5
Credits 978
Posts 580
点点分 978
Reading Access 101
Registered 2005-2-18
Location 广东
Status Offline
#4
Post at 2007-6-16 11:31
Profile
|
Site
|
Blog
|
P.M.
|
|
只要两个变量的属性和方法没多少相似之处代码的可读性还是可以的。
小冬
http://MyvNet.com
wr960204
新警察
UID 1667
Digest Posts 0
Credits 32
Posts 14
点点分 32
Reading Access 10
Registered 2006-1-14
Status Offline
#5
Post at 2007-7-26 16:23
Profile
|
Blog
|
P.M.
有些Pascal族系的后继语言支持
with mmo1.Lines:a, CnVolumeCtrl1:b do
begin
a.XXX;
b.XXX;
end;
kendling
(小冬)
高级版主
MyvNet
UID 703
Digest Posts
5
Credits 978
Posts 580
点点分 978
Reading Access 101
Registered 2005-2-18
Location 广东
Status Offline
#6
Post at 2007-7-27 13:23
Profile
|
Site
|
Blog
|
P.M.
|
|
这个语法在哪个版本实现了?
小冬
http://MyvNet.com
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#7
Post at 2007-7-27 14:23
Profile
|
Blog
|
P.M.
估计Delphi没有吧。
shenloqi
灌水处处长
UID 34
Digest Posts
1
Credits 287
Posts 179
点点分 287
Reading Access 10
Registered 2003-3-15
Status Offline
#8
Post at 2007-7-30 10:07
Profile
|
P.M.
他说的应该是chrome
Poll
Trade
Reward
Activity
CnPack Forum
CnPack English Forum
> CnWizards IDE Wizards
> CVSTracNT
> Announcements & Others
All times are GMT++8, the time now is 2024-11-22 07:11
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.007707 second(s), 8 queries , Gzip enabled
TOP
Clear Cookies
-
Contact Us
-
CnPack Website
-
Archiver
-
WAP
Member's CP Home
Edit Profile
Credits Transaction
Public User Groups
Buddy List
Main
Page Views
User Agents
Posts History
Top Forums
Top Threads
Post Ranking
Credit Ranking
Online Time
Team
Moderation Stats