home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- BorderStyle = 1 'Fixed Single
- Caption = "OLE Registration Database Viewer"
- Height = 4620
- Icon = REGVIEW.FRX:0000
- Left = 3330
- LinkMode = 1 'Source
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 4215
- ScaleWidth = 5655
- Top = 3630
- Width = 5775
- Begin ListBox Classes
- Height = 1980
- Left = 120
- TabIndex = 0
- Top = 360
- Width = 2415
- End
- Begin ListBox ClassesDisplay
- Height = 1980
- Left = 2640
- TabIndex = 2
- Top = 360
- Width = 2895
- End
- Begin OleClient Client1
- Class = ""
- Focus = 0 'False
- Height = 495
- HostName = ""
- Left = 840
- Protocol = "StdFileEditing"
- ServerShow = 0 'False
- ServerType = 0 'Linked
- SourceDoc = ""
- SourceItem = ""
- Timeout = 32767
- Top = 1080
- Verb = 0
- Visible = 0 'False
- Width = 1215
- End
- Begin ListBox Protocols
- Height = 615
- Left = 120
- TabIndex = 4
- Top = 2640
- Width = 2415
- End
- Begin ListBox AcceptFmts
- Height = 615
- Left = 2640
- TabIndex = 8
- Top = 2640
- Width = 2895
- End
- Begin ListBox Verbs
- Height = 615
- Left = 120
- TabIndex = 6
- Top = 3600
- Width = 2415
- End
- Begin ListBox GetFmts
- Height = 615
- Left = 2640
- TabIndex = 10
- Top = 3600
- Width = 2895
- End
- Begin Label Label1
- Caption = "&Server Classes"
- Height = 195
- Left = 120
- TabIndex = 11
- Top = 120
- Width = 1275
- End
- Begin Label Label2
- Caption = "&Display Name for Classes"
- Height = 195
- Left = 2760
- TabIndex = 1
- Top = 120
- Width = 2160
- End
- Begin Label Label3
- Caption = "&Protocols"
- Height = 195
- Left = 120
- TabIndex = 3
- Top = 2400
- Width = 810
- End
- Begin Label Label5
- Caption = "&Accept Formats"
- Height = 195
- Left = 2640
- TabIndex = 7
- Top = 2400
- Width = 1335
- End
- Begin Label Label4
- Caption = "&Verbs"
- Height = 195
- Left = 120
- TabIndex = 5
- Top = 3360
- Width = 495
- End
- Begin Label Label6
- Caption = "&Get Formats"
- Height = 195
- Left = 2640
- TabIndex = 9
- Top = 3360
- Width = 1035
- End
- Sub Classes_Click ()
- ClassesDisplay.ListIndex = Classes.ListIndex
- FillItems (Client1.ServerClasses(Classes.ListIndex))
- End Sub
- Sub ClassesDisplay_Click ()
- Classes.ListIndex = ClassesDisplay.ListIndex
- End Sub
- Sub FillItems (S$)
- Client1.ServerClass = S$
- ' PROTOCOL
- While Protocols.ListCount
- Protocols.RemoveItem 0
- Wend
- For I = 0 To Client1.ServerProtocolCount - 1
- Protocols.AddItem Client1.ServerProtocol(I)
- Next I
- ' VERBS
- While Verbs.ListCount
- Verbs.RemoveItem 0
- Wend
- For I = 0 To Client1.ServerVerbsCount - 1
- Verbs.AddItem Client1.ServerVerbs(I)
- Next I
- ' AcceptFormats
- While AcceptFmts.ListCount
- AcceptFmts.RemoveItem 0
- Wend
- For I = 0 To Client1.ServerAcceptFormatsCount - 1
- AcceptFmts.AddItem Client1.ServerAcceptFormats(I)
- Next I
- ' GetFormats
- While GetFmts.ListCount
- GetFmts.RemoveItem 0
- Wend
- For I = 0 To Client1.ServerGetFormatsCount - 1
- GetFmts.AddItem Client1.ServerGetFormats(I)
- Next I
- End Sub
- Sub Form_Load ()
- For I = 0 To Client1.ServerClassCount - 1
- Classes.AddItem Client1.ServerClasses(I)
- ClassesDisplay.AddItem Client1.ServerClassesDisplay(I)
- Next I
- End Sub
- Sub Form_Unload (Cancel As Integer)
- End
- End Sub
-