frmctimetest.frm
来自「Visual Basic 6 大学教程的代码」· FRM 代码 · 共 53 行
FRM
53 行
VERSION 5.00
Begin VB.Form frmCTimeTest
AutoRedraw = -1 'True
Caption = "Testing class CTime"
ClientHeight = 3300
ClientLeft = 60
ClientTop = 345
ClientWidth = 7800
BeginProperty Font
Name = "MS Sans Serif"
Size = 13.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
ScaleHeight = 3300
ScaleWidth = 7800
StartUpPosition = 3 'Windows Default
End
Attribute VB_Name = "frmCTimeTest"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' Form module used to test class CTime1
Option Explicit
Private Sub Form_Load()
Dim t As New CTime1
Print "Initial Standard time is : " & t.ToStandardTime()
Print "Initial Universal time is: " & t.ToUniversalTime()
Print
Call t.SetTime(17, 28, 46)
Print "Standard time after calling SetTime: " & _
t.ToStandardTime
Print "Univeral time after calling SetTime: " & _
t.ToUniversalTime
Print
Call t.SetTime(5, 44, 99)
Print "Standard time after attempting invalid settings: " & _
t.ToStandardTime
Print "Univeral time after attempting invalid settings: " & _
t.ToUniversalTime
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?