Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共14 条记录, 每页显示 10 条, 页签: [1] [2]
[浏览完整版]

标题:如何在状态栏显示农历日期及星期

11楼
zyxhx 发表于:2017/4/17 16:16:00
我调整了一下代码,实现了我想要的功能,但对代码内容理解不够,能不能请老师给下面的代码添加一下注释?再次表示感谢。

static ln As New Lunar(Date.Today)
Dim str As String = ""
Dim d As Date = cdate(ln.LunarDate)
If d.Day <= 10 Then
    str = cldate(d).Substring(5).trim("日")
    str = str.Insert(str.Length-1, "初")
Else
    str = cldate(d).Substring(5).trim("日")
End If
statusBar.Message1 = "当前用户:" & User.Name & "  " & Format(Date.Today,"yyyy-MM-dd" & "  " & format(Date.now, "HH:mm:ss") & "  农历" & str & "  " & Format(Date.Today,"dddd" ))
statusBar.DefaultMessage = statusBar.Message1
12楼
有点色 发表于:2017/4/17 16:45:00

知识点

 

http://www.foxtable.com/webhelp/scr/1274.htm

 

http://www.foxtable.com/webhelp/scr/1581.htm

 

http://www.foxtable.com/webhelp/scr/1578.htm

 

http://www.foxtable.com/webhelp/scr/0240.htm

13楼
zyxhx 发表于:2017/4/17 16:55:00
谢谢
14楼
18996655501 发表于:2024/6/23 23:48:00
Dim ln As New Lunar(Date.now)

statusBar.Message1 = Format(Date.Now, "F") & "农历" & ln.Year & "年" & ln.Month & "月" & ln.Day & "日"

这样就可以显示出来了
共14 条记录, 每页显示 10 条, 页签: [1] [2]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .03125 s, 2 queries.