猜猜结果?Option Explicit
猜猜结果?
猜猜结果?
Private Sub Command1_Click()
猜猜结果?    
On Error GoTo ErrLabel '打开错误陷阱
猜猜结果?
    '------------------------------------------------
猜猜结果?
    Dim a As Boolean
猜猜结果?    a 
= True
猜猜结果?    
If getresult = False And 1 < 0 Then
猜猜结果?        
MsgBox a
猜猜结果?    
Else
猜猜结果?        
MsgBox a
猜猜结果?    
End If
猜猜结果?    
'------------------------------------------------
猜猜结果?
    Exit Sub
猜猜结果?    
'----------------
猜猜结果?
ErrLabel:
猜猜结果?    
'跳出错误对话框,并保存错误信息
猜猜结果?
    Resume Next
猜猜结果?
End Sub
猜猜结果?
猜猜结果?
Private Function getresult() As Boolean
猜猜结果?    Err.Raise 
100
猜猜结果?
End Function
猜猜结果?

相关文章:

  • 2022-12-23
  • 2021-12-29
  • 2021-12-03
  • 2021-04-28
  • 2021-10-30
  • 2021-07-16
  • 2022-01-20
  • 2021-12-19
猜你喜欢
  • 2021-07-26
  • 2021-11-22
  • 2022-02-01
  • 2021-08-06
  • 2021-08-25
  • 2021-10-03
  • 2022-12-23
相关资源
相似解决方案