lr.eval_data

String and Parameter Functions

Returns an array of bytes from a parameter.

byte[ ] lr.eval_data ( String name );

Arguments

NameComments
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]));