标题:[求助]关于_screen.caption在vfp6和vfp9中产生的差异
取消只看楼主
hulunchi
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2007-8-26
 问题点数:0 回复次数:0 
[求助]关于_screen.caption在vfp6和vfp9中产生的差异
我在vfp6的_screen.caption设置时间和星期编译后运行没问题。但在vfp9编译后运行
却没有了星期的部分。点解?
代码如下:
_screen.caption=str(year(date()),4)+"年"
TempMonth=month(date())
_screen.caption=_screen.caption+str(TempMonth,iif(TempMonth<10,1,2))+"月"
TempDay=day(date())
_screen.caption=_screen.caption+str(TempDay,iif(TempDay<10,1,2))+"日"
TempWeekDay=cdow(date())
DO case
case TempWeekDay="Monday"
_screen.caption=_screen.caption+" 星期一"
case TempWeekDay="Tuesday"
_screen.caption=_screen.caption+" 星期二"
case TempWeekDay="Wednesday"
_screen.caption=_screen.caption+" 星期三"
case TempWeekDay="Thursday"
_screen.caption=_screen.caption+" 星期四"
case TempWeekDay="Friday"
_screen.caption=_screen.caption+" 星期五"
case TempWeekDay="Saturday"
_screen.caption=_screen.caption+" 星期六"
case TempWeekDay="Sunday"
_screen.caption=_screen.caption+" 星期日"
ENDCASE
搜索更多相关主题的帖子: caption screen 
2007-09-26 16:16



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-173057-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.054272 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved