home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmQueryPage
- BorderStyle = 3 'Fixed Dialog
- Caption = "Query Web Page"
- ClientHeight = 2385
- ClientLeft = 1500
- ClientTop = 2265
- ClientWidth = 5190
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2385
- ScaleWidth = 5190
- ShowInTaskbar = 0 'False
- Begin VB.CommandButton btnQuery
- Caption = "Query Web Page"
- Height = 375
- Left = 1860
- TabIndex = 2
- Top = 1200
- Width = 1515
- End
- Begin VB.Label Label1
- Caption = $"querypg.frx":0000
- Height = 615
- Left = 120
- TabIndex = 3
- Top = 1620
- Width = 4935
- End
- Begin VB.Line Line1
- X1 = 120
- X2 = 5040
- Y1 = 960
- Y2 = 960
- End
- Begin VB.Label Label5
- Caption = "This form uses the following FrontPage Editor methods:"
- Height = 255
- Left = 120
- TabIndex = 1
- Top = 120
- Width = 4935
- End
- Begin VB.Label Label6
- Alignment = 2 'Center
- Caption = "vtiQueryWebPage"
- Height = 255
- Left = 120
- TabIndex = 0
- Top = 480
- Width = 4935
- WordWrap = -1 'True
- End
- Attribute VB_Name = "frmQueryPage"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub btnQuery_Click()
- Dim editor As Object
- Dim webber As Object
- Dim webURL As String
- Dim ret As Long
- Dim url As String
- Set webber = CreateObject("FrontPage.Explorer")
- webURL = webber.vtiGetWebURL
- Set webber = Nothing
- If Len(webURL) = 0 Then
- MsgBox "No web is currently open in the Explorer."
- Exit Sub
- End If
- MousePointer = 11
- frmGetURL.Tag = ""
- frmGetURL.Show 1
- If frmGetURL.Tag <> "" Then
- url = frmGetURL.Tag
- Set editor = CreateObject("FrontPage.Editor")
- ret = editor.vtiQueryWebPage(url, webURL)
- If ret = 1 Then
- MsgBox "Document is being edited by the FrontPage Editor."
- Else
- MsgBox "Document is not loaded in the FrontPage Editor."
- End If
- Set editor = Nothing
- End If
- frmGetURL.Tag = ""
- MousePointer = 0
- End Sub
-