Guest:
Register
|
Login
|
Member List
|
Search
|
Statistics
|
FAQ
Language
----------
Simplifed Chinese
Traditional Chinese
English
CnPack Forum
»
技术板块灌水区
» [求助]关于饭桶日历控件的日期报错问题。
‹‹ Last Thread
|
Next Thread ››
Poll
Trade
Reward
Activity
Printable Version
|
Email to Friend
|
Subscription
|
Favorites
Subject: [求助]关于饭桶日历控件的日期报错问题。
ihelpsoft
新警察
UID 39452
Digest Posts 0
Credits 36
Posts 14
点点分 36
Reading Access 10
Registered 2008-4-1
Status Offline
#1
Post at 2010-11-6 10:34
Profile
|
Site
|
Blog
|
P.M.
|
[求助]关于饭桶日历控件的日期报错问题。
网上看到了饭桶日历控件,觉得不错。在一个帮朋友的小程序中用上了。结果到朋友的Win7机器上报错了。内容大致是日期分隔符的,说是2004-01-01不是有效的日期。目前我的解决办法是改了机器设置,将分隔符改为“/”了。问题暂时解决。我疑惑的是:2004-01-01日期是咋来的呢?也许该去问问作者,不过我也相信Cnpack的实力,呵呵,有能给讲解一下的吗?另外控件源码我没看,知道会有些吃力。只是简单进行了一下字符串搜索,没有发现2004-01-01字串。
研淘网
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#2
Post at 2010-11-6 18:37
Profile
|
Blog
|
P.M.
可能是初始化时候默认的值吧?
没看过这个控件,猜的。如果有源码估计能查查。
球球
新警察
UID 44105
Digest Posts 0
Credits 29
Posts 10
点点分 29
Reading Access 10
Registered 2009-10-25
Status Offline
#3
Post at 2010-11-29 08:38
Profile
|
Blog
|
P.M.
使用DateSeparator常量,不要直接用“-”,例如srttodate('2010'+DateSeparator+'10'+DateSeparator+'25')
xzhifei
新警察
UID 42833
Digest Posts 0
Credits 4
Posts 2
点点分 4
Reading Access 10
Registered 2009-7-16
Status Offline
#4
Post at 2010-11-29 10:20
Profile
|
Blog
|
P.M.
这个控件是我写的,由于本人技术有限,给大家带来的困扰还请见谅
1532行或1558行:
D:=StrToDate('2004-1-1');
换成:
D:=EncodeDate(2004,1,1);
这可以解决某些系统报日期格式不正确的现象
Passion
(LiuXiao)
管理员
UID 359
Digest Posts
19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
#5
Post at 2010-11-29 14:34
Profile
|
Blog
|
P.M.
作者来了,欢迎欢迎。
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 01:50
Powered by
Discuz!
5.0.0
© 2001-2006
Comsenz Inc.
Processed in 0.006872 second(s), 7 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