主题:怎样设置汉字时钟
dipingxian
[专家分:0] 发布于 2009-07-31 12:15:00
我是学V-F的,在表单中应该怎样设置汉字时钟。我会设置数字时钟,请大家多多帮助!谢谢啊
回复列表 (共1个回复)
沙发
homayzh [专家分:7040] 发布于 2009-07-31 13:30:00
atxt = '零一二三四五六七八九十'
outcaption = ""
DO CASE
CASE VAL(SUBSTR(TIME(),1,2))<10
outcaption = outcaption +SUBSTR(atxt,VAL(SUBSTR(TIME(),1,1))*2+1,2)
CASE VAL(SUBSTR(TIME(),1,2)) < 20
outcaption = outcaption +"十"
outcaption = outcaption + SUBSTR(atxt,VAL(SUBSTR(TIME(),2,1))*2+1,2)
OTHERWISE
outcaption = outcaption + "二十"
outcaption = outcaption + SUBSTR(atxt,VAL(SUBSTR(TIME(),2,1))*2+1,2)
ENDCASE
outcaption = outcaption + "点"
mm = VAL(SUBSTR(TIME(),4,2))
DO CASE
CASE mm < 10
outcaption = outcaption + '零'
outcaption = outcaption +SUBSTR(atxt,VAL(SUBSTR(TIME(),5,1))*2+1,2)
CASE mm < 20
outcaption = outcaption +"十"
outcaption = outcaption + SUBSTR(atxt,VAL(SUBSTR(TIME(),5,1))*2+1,2)
OTHERWISE
outcaption = outcaption + SUBSTR(atxt,VAL(SUBSTR(TIME(),4,1))*2+1,2)
outcaption = outcaption + "十"
outcaption = outcaption + SUBSTR(atxt,VAL(SUBSTR(TIME(),5,1))*2+1,2)
ENDCASE
outcaption = outcaption + '分'
?outcaption
我来回复