frmdate.frm

来自「Visual Basic 6 大学教程的代码」· FRM 代码 · 共 47 行

FRM
47
字号
VERSION 5.00
Begin VB.Form frmDate 
   AutoRedraw      =   -1  'True
   Caption         =   "Demonstrating Composition"
   ClientHeight    =   780
   ClientLeft      =   3240
   ClientTop       =   3990
   ClientWidth     =   6330
   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     =   780
   ScaleWidth      =   6330
End
Attribute VB_Name = "frmDate"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
' Form module to test class CDate1 and CEmployee
Option Explicit

Private Sub Form_Load()
   Dim employee1 As New CEmployee
   Dim employee2 As New CEmployee
   
   With employee1
      .Firstname = "Bob"
      .LastName = "Jones"
      Call .BirthDate.SetDate(9, 8, 1965)
      Call .HireDate.SetDate(2, 17, 1992)
   End With
      
   employee2.Firstname = "Susan"
   employee2.LastName = "Baker"
   
   Print employee1.ToString()
   Print employee2.ToString()
End Sub

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?