Share this page

# lr.paramarrIdx

Returns the value of the parameter at a specified location in a parameter array.

String and Parameter Functions

## Syntax

    lr.paramarrIdx( paramArrayName, index ) ;

## Arguments

Argument | Comments
--- | ---
paramArrayName | The name of the parameter array from which to return the value.
index | The one-based position of the parameter in the array.

lr.paramarrIdx returns a string containing the value of the parameter at the specified position in a parameter array. If the parameter does not exist, the return value is the concatenation of "{", paramArrayName, "_", index, and "}", for example, "{myParam_4}".

## Return Values

A string buffer containing the value. On error, returns NULL.

## Parameterization

Standard parameterization is not available for this function.

## Example

Copy code

    function Action(){
        var arrSize;
        var flightVal;
        web.regSaveParam({name : 'outFlightVal',
            lb:'Example',
            rb:'<',
            ord:'ALL'});

        web.url(
         {
            name : 'All kind of CGI\'s.',
            url : 'http://kalimanjaro/cgi_examples/cgi_overview.html',
            targetFrame : '',
            resource : 0,
            recContentType : 'text/html',
            referer : 'http://kalimanjaro/',
            snapshot : 't2.inf',
            mode : 'HTML'
         }
        );

        arrSize = lr.paramarrLen("outFlightVal");
        flightVal = lr.paramarrIdx("outFlightVal",arrSize);

        return 0;
    }

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