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

lr.paramarrLen

Returns the number of elements in a parameter array.

Example String and Parameter Functions

Syntax

lr.paramarrLen( paramArrayName ); 

Arguments

Argument Comments
paramArrayName The name of the parameter array.

lr.paramarrLen returns the number of elements in a parameter array.

Return Values

The length of the array. On error, returns -1.

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