EditForm Property

Microsoft FrontPage Visual Basic

EditForm Property

Returns or sets a String that represents the relative URL of the form used for editing the current list in Microsoft FrontPage. The edit form allows you to modify the columns in the current list. Read/write.

expression.EditForm

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

The default filename is EditForm.htm.

Example

The following example displays the names of all lists in the active Web site and the relative URL of their associated edit forms.

    Sub ViewEditFormURL()
'Displays the URL of the form
'associated with editing the list

    Dim lstWebList As List
    Dim strURL As String

    If Not ActiveWeb.Lists Is Nothing Then
        'Cycle through lists and add URLs to string
        For Each lstWebList In ActiveWeb.Lists
            If strURL = "" Then
                strURL = lstWebList.Name & "  -  " & _
                lstWebList.EditForm & vbCr
            Else
                strURL = strURL & lstWebList.Name & "  -  " & _
                lstWebList.EditForm & vbCr
            End If
        Next
        'Display URLs of all editing forms in Web site
        MsgBox "The relative URLs of the editing forms are:" _
               & vbCr & vbCr & strURL
    Else
        'Otherwise display message to user
        MsgBox "The current Web site contains no lists."
    End If

End Sub