Share this page

# lr.save_int

Saves an integer to a parameter

## JavaScript

    function lr.save_int (  value,  param_name  )

## VBScript

    Function lr.save_int (  value, param_name   )

String and Parameter Functions

## Arguments

Name | Comments
--- | ---
value | The integer value to assign to the parameter.
param_name | The name of the parameter.

The lr.save_int function assigns an integer to a parameter. This function is useful in correlating queries. To determine the value of the parameter, use the lr.eval_intfunction.

## Return Values

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

## Parameterization

Standard parameterization is not available for this function.

## VBScript Example

This example shows the use of lr.eval_int to output the value of a parameter that was created with lr.save_int.

Copy code

    dim s as String
    ' Create the parameter
    lr.save_int 12,"ID_num"
    ' Output the parameter value
    s= " Track Stock : " + Cstr(lr.eval_int("<ID_num>"))
    lr.message s

    Example: Output:
    Notify: Saving Parameter "ID_num = 12"
    Notify: Parameter Substitution: parameter "ID_num" = "12"
    Track Stock : 12

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: