BBjFileSystem::resolvePath

Description

In BBj 15.00 and higher, this method returns the fully resolved absolute path for the specified file name. The file name can be a file relative to any configured prefix configurations. When a BBx program makes a call to OPEN passing in a relative path to a file, BBj checks any configured prefixes to look for the specified file in those locations. This method returns the full path BBj would use in a call to OPEN.

Syntax

Return Value

Method

string

resolvePath(string fileName)

Parameters

Variable

Description

fileName

Specifies the name of the file.

Return Value

Returns the fully resolved absolute path.

Example

rem ' Obtain the instance of the BBjFileSystem object

BBjFileSystem!=BBjAPI().getFileSystem()

rem ' Get the full path to a file
fullPath$ = BBjFileSystem!.resolvePath("MY_DATA_FILE")

See Also

BBjAPI

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.