⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmctimetest.frm

📁 Visual Basic 6 大学教程的代码
💻 FRM
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -