回 帖 发 新 帖 刷新版面

主题:这个怎么错了?

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

回复列表 (共5个回复)

沙发

?CDOW(DATE())

板凳

楼主的VF是汉化版的吧?直接用,多简单啊:
?_screen.caption+"["+CDOW(DATE())+"]"

3 楼

?"今天是星期"+SUBSTR("日一二三四五六",(DOW(DATE()))*2-1,2)

4 楼

楼上三位老兄,学习了!

5 楼

学习了,谢谢楼上几位!

我来回复

您尚未登录,请登录后再回复。点此登录或注册