Share this page

# lr.eval_data

String and Parameter Functions

Returns an array of bytes from a parameter.

    byte[ ] lr.eval_data ( String name );

## Arguments

Name | Comments
--- | ---
name | The name of the parameter you want to retrieve.

The lr.eval_data function returns the values from a parameter containing a byte array.

## Return Values

This function returns the value of the specified string or null on error.

## Parameterization

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

## Example

In this example, lr.eval_data returns the byte array from parameter ID into the byte array output_arr.

    // Example array of arbitrary bytes.
    	byte [] b_arr = new byte[]{(byte)0x12,(byte)0x2,(byte)0x1,(byte)0x3};
    // Save the array into parameter ID
    	lr.save_data(b_arr,"ID");
    // Save the contents of the array parameter to another array
    	byte [] output_arr = lr.eval_data("<ID>");
    	lr.output_message("This is the value of the first output byte: "
    	    + Byte.toString(output_arr[0]));

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: