Move Method (Web Object Model)

Microsoft FrontPage Visual Basic

expression.Move(DestinationUrl, UpdateLinks, ForceOverwrite)

expression    An expression that returns one of the above objects.

DestinationUrl    Required String. The target URL, such as "C:\My Documents\My Web Sites\Adventure Works".

UpdateLinks    Required Boolean.True to update links during the move process.

ForceOverwrite    Required Boolean.True to overwrite duplicate files or folders.

ShowMove method as it applies to the NavigationNode object.

Moves a navigation node from one location to another in the navigation structure. Returns a NavigationNode object that represents the node after it has been moved.

expression.Move(NodeCollection, NewLeftSibling)

expression    An expression that returns a NavigationNode object.

NodeCollection    Required NavigationNodes. The target navigation collection.

NewLeftSibling    Optional Variant. The navigation node that will precede the new node in the navigation structure. If it is not specified, the node will become the last node in the target node collection specified in the NodeCollection parameter.

Example

ShowAs it applies to the WebFile object.

The following statement moves a file from one position in the file structure to another.

myFile.Move("C:\My Documents\My Web Sites\Adventure Works\Images", _
    True, False)

Show As it applies to the NavigationNode object.

The following example moves a node from the fifth position in the navigation structure to the fourth position in the navigation structure by designating the third node as the new left sibling.

Private Sub MoveNavNode()
    Dim myNodes As NavigationNodes
    Dim myNode As NavigationNode

    Set myNodes = ActiveWeb.RootNavigationNode.Children
    Set myNode = myNodes(4)

    myNode.Move(myNodes,2)
    ActiveWeb.ApplyNavigationStructure

End Sub