main.bas

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

BAS
26
字号
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 + =
减小字号Ctrl + -
显示快捷键?