Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
CnPack IDE 专家包(CnWizards)
» INI生成向导的问题
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: INI生成向导的问题
rypan
新警察
UID 621
Digest Posts 0
Credits 17
Posts 17
点点分 17
Reading Access 10
Registered 2004-12-23
Status Offline
#1
Post at 2005-1-9 14:18
Profile
|
Blog
|
P.M.
INI生成向导的问题
怎么才能自动判断bool型变量?
a=true
a=True
a=TRUE
a=y
a=Y
均认为是string类型
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2005-1-9 18:59
Profile
|
Blog
|
P.M.
很抱歉,INI向导中目前只做了String, Integer, Float, DateTime四种类型的自动判断,Boolean则未处理。因为INI文件的ReadBool/writeBool等功能只认识0和1,TRUE/FALSE等字符串则不认,因而不好处理,而且0和1又易和Integer类型混淆,所以本专家没实现对BOOLEAN类型的判断,给您带来了不便请见谅。
rypan
新警察
UID 621
Digest Posts 0
Credits 17
Posts 17
点点分 17
Reading Access 10
Registered 2004-12-23
Status Offline
#3
Post at 2005-1-9 22:49
Profile
|
Blog
|
P.M.
是不是给用户一个选项比较好? 毕竟一个ini文件里没有bool类型的情况比较少.
rypan
新警察
UID 621
Digest Posts 0
Credits 17
Posts 17
点点分 17
Reading Access 10
Registered 2004-12-23
Status Offline
#4
Post at 2005-1-9 23:00
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
#5
Post at 2005-1-12 15:19
Profile
|
Blog
|
P.M.
支持Boolean类型的功能,我们在新版本中已经加入了。您可以在最近的自动构建版中看见此功能。
至于常量前缀,普通的代码风格中,还是提倡给常量加统一前缀的。
而且在本专家中,如常量无前缀,则会和属性名同名,造成编译通不过的问题。您觉得呢?
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 06:40
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.012873 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