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

lr.saveString

Saves a null-terminated string to a parameter.

ExampleString and Parameter Functions

Syntax

lr.saveString( paramValue, paramName );

Arguments

ArgumentComments
paramValue The value to assign to the parameter.
paramName The name of the parameter.

The lr.saveString function assigns the specified null-terminated string to a parameter. This function is useful in correlating queries. To determine the value of the parameter, use the lr.evalString function.

Return Values

This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure.

Parameterization

You cannot use standard parameterization for any arguments in this function.

Example

  lr.saveString( "777", "param" );
  lr.outputMessage( lr.evalString("{param}"));