Share this page

# lr.save_string

Saves a null-terminated string to a parameter.

    int lr.save_string( String param_value , String param_name);

String and Parameter Functions | Java Syntax

## Arguments

Name | Comments
--- | ---
param_value | The value to assign to the parameter.
param_name | The name of the parameter. (Case sensitive)

The lr.save_string 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.eval_string 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

In the following example, lr.save_string assigns John Doe to the parameter Student. This parameter is then used in an output message.

Copy code

    lr.save_string("John Doe" , "Student" );
        // ...
    lr.message("Get report card for " + lr.eval_string("<Student>") );

    Example: Output:
        Notify: Saving Parameter "Student = John Doe"
        Notify: Parameter Substitution: parameter "Student" = "John Doe"
        Get report card for John Doe

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: