Share this page

# web.saveParamLength

Miscellaneous Functions

Saves the length of a parameter.

## Syntax

    web.saveParamLength( param, base );

Property Name | Description
--- | ---
param | The name of the parameter of which the length is saved.
base | The representation of the length in the parameter. base is one of `Decimal` or `Hexadecimal`

## Return Values

Not applicable

## Parameterization

Parameterization is not applicable to this function.

## General Information

web.saveParamLength creates a new parameter named "<param>_Length", if it does not already exist, and saves the length of param in parameter "<param>_Length".

For example, the call `web.saveParamLength("Rowid", "Hexadecimal" );` creates a new parameter named "Rowid_Length". The value of Rowid_Length after the call is the length of the value of Rowid.

## Example

    lr.saveString("ABCDEFGHIJKLMNOP","Param16");

    web.saveParamLength("Param16", "Hexadecimal");

    lr.outputMessage("value is"+lr.evalString("{Param16_Length}"));

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: