📄 main.bas
字号:
Attribute VB_Name = "modMain"
' Fig. 11.20
' Demonstrating the use of form templates
Option Explicit ' General declaration modMain
Public Sub Main()
Dim delayTime As Double
Dim counter As Double
Call Load(frmSplash) ' Load frmSplash
Call frmSplash.Show ' Display frmSplash
Call Load(frmEmpty) ' Load frmEmpty
delayTime = Timer() ' Get current time
' Manufacture a delay to simulate an application
' loading and to give frmSplash a chance to display
Do
counter = Timer() - delayTime
DoEvents
Loop While (counter < 10)
Call Unload(frmSplash) ' Unload frmSplash
Call frmEmpty.Show ' Display frmEmpty
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -