当前位置:编程学习 > VB >>

显示程序的版本

 

 

如果你想在程序的“关于……”中显示程序的版本(以标准方式显示:即 x.xx.xxxx),你可以使用以下子程序:

Public Function GetMyVersion() As String

Static strMyVer As String

If strMyVer = "" Then

strMyVer = Trim$(Str$(App.Major)) & "." & Format$(App.Minor, "##00") & "." Format$(App.Revision, "000")

End If

GetMyVersion = strMyVer

End Function

补充:软件开发 , Vb ,
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,