Utility Functions and C Language Reference > Utility Functions: Java (lr.) > Alphabetical Listing > lr.save_data


Example: lr.save_data String and Parameter Functions

Saves an array of values to a parameter.

Java Language

int lr.save_data ( byte[ ] values, String param_name);


Name Comments
values The array of bytes to assign to the parameter.
param_name The name of the parameter.

The lr.save_data function assigns the specified array of data to a parameter. This function is useful for correlation. To determine the value of the parameter, use the lr.eval_datafunction.

Return Values

This function returns LR_PASS (0) on success, and LR_FAIL (1) on failure. Note that in many cases, this return value indicates the technical success of the function, and not the result. For example, a function that registers a string to be found in a subsequent step returns LR_PASS to indicate that the registration was successful. This does not indicate that the string was found in the server response.


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