MoveToPos Method

Supported in UFT One versions 2022 and later.

Description

Moves the function library file entry from the current position to the specified new position.

Syntax

Visual Basic
Public Sub MoveToPos( _
   ByVal CurPosition As Long, _
   ByVal NewPosition As Long _
) 

Parameters

  • CurPosition

    The current position of the function library file whose position you want to change. Position values begin with 1.

  • NewPosition

    The position in the function library list to which you want to move the function library file. Position values begin with 1.

Example

The following example opens an application area, moves the position of a function library file, and then saves the application area.

Copy code
uftApp.OpenAppArea("[ALM\Resources] Resources\manual\AA\AA3")

Set AAFunctionLibraries = uftApp.AppArea.Resources.Libraries ' Get the libraries collection object
AAFunctionLibraries.MoveToPos 7,1
uftApp.AppArea.Save

See Also

AAFunctionLibraries Collection | AAFunctionLibraries Collection Members