Find Method

Supported in versions 2022 and later.

Description

Finds the position of the specified function library file.

Syntax

Visual Basic
Public Function Find( _
   ByVal FLPath As String _
) As Long

Parameters

FLPath

The ALM path of the function library file you want to find.

The ALM path is the location of the file in OpenText Application Quality Management. For example:

[ALM\Resources] Resources\Libraries\Library1.qfl (for a file stored in the Test Resources module) or [ALM] Subject\qtp95\Library1.qfl (for a file stored as an attachment.)

Return Type

The Find method returns -1 if the specified library path is not found.

Example

The following example finds a function library in the function library collection of an application area:

Copy code
Set uftApp = CreateObject("QuickTest.Application") ' Create the Application object
uftApp.Launch ' Start the product 
uftApp.Visible = True ' Make the window visible

uftApp.OpenAppArea("[ALM\Resources] Resources\manual\AA\AA1")
Set AAFunctionLibraries = uftApp.AppArea.Resources.Libraries ' Get the libraries collection object
MsgBox AAFunctionLibraries.Find ("[ALM] Subject\manual\FL to AA\FL6.qfl")

See Also

AAFunctionLibraries Collection