JavaScript Functions > Alphabetical Listing of Utility Functions (lr) > lr.paramarrIdx

lr.paramarrIdx

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

Example 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.

Concept Link IconSee Also

Example

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;
}