JavaScript Functions > Alphabetical Listing of Web Functions > web.saveParamLength

web.saveParamLength

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