VBClient.frm
上传用户:bjlvip
上传日期:2010-02-08
资源大小:744k
文件大小:1k
- VERSION 5.00
- Begin VB.Form Form1
- AutoRedraw = -1 'True
- Caption = "Form1"
- ClientHeight = 3420
- ClientLeft = 48
- ClientTop = 324
- ClientWidth = 4608
- LinkTopic = "Form1"
- ScaleHeight = 3420
- ScaleWidth = 4608
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command1
- Caption = "Click Me"
- Height = 372
- Left = 1800
- TabIndex = 0
- Top = 1560
- Width = 972
- 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()
- Dim Numbers As New InsideCOM
- Print Numbers.Count
- Numbers.Add 5
- Numbers.Add 10
- Numbers.Add 15
- Numbers.Add 20
- Numbers.Add 25
- Numbers.Remove 2 ' Removes 10
- Numbers.Remove 3 ' Removes 20
- Print Numbers.Count
- Dim Number As Variant
- For Each Number In Numbers
- Print "Hello " & Number
- Next Number
- Dim i As Long
- For i = 1 To Numbers.Count
- Print Numbers.Item(i)
- Print Numbers(i)
- Next i
- End Sub