Share this page

# lr.loadLibrary

Evaluates and runs the specified JavaScript file in the global context.

Runtime Functions

## Syntax

                lr.loadLibrary( "<path>" );

## Arguments

Argument | Comments
--- | ---
path | One of: A file name - The file is in the script folder. ("myscript.js") A relative path - The path root is the script folder. ("../../myscript.js") A fully specified path name. ( "C:\scripts\myscript.js")

The lr.loadLibrary function evaluates and runs the specified js file in the global context. Enter the function manually before the beginning of the action scope.

## Return Values

Not applicable

## Parameterization

Parameterization is not applicable to this function.

## Example

    lr.loadLibrary('circle.js');
    function Action()
    {
    	lr.outputMessage(circle.area(5));
    	return 0;
    }

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: