[求助]关于_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