client.frm
上传用户:bjlvip
上传日期:2010-02-08
资源大小:744k
文件大小:1k
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 2508
- ClientLeft = 48
- ClientTop = 324
- ClientWidth = 3744
- LinkTopic = "Form1"
- ScaleHeight = 2508
- ScaleWidth = 3744
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command1
- Caption = "Command1"
- Height = 492
- Left = 600
- TabIndex = 0
- Top = 840
- Width = 1212
- End
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- On Error GoTo MyHandler
- Dim Test As New Component.InsideCOM
- Print Test.Sum(4, 3) ' Everything is OK
- Print Test.Sum(-1, 5) ' Raises exception
- Exit Sub
- MyHandler: ' Exception transfers execution control here
- MsgBox Err.Description ' Displays: Negative numbers not allowed
- End Sub