Share this page

# lr.zip

Compresses the information in a parameter and stores the compressed information in another parameter.

String and Parameter Functions

## Syntax

    lr.zip ( "source=<parameter name>", "target=<parameter name>" );

## Arguments

Argument | Comments
--- | ---
source | The name of the parameter containing the information to be compressed.
target | The name of the parameter to store the compressed information.

lr.zip compresses the information in a parameter and stores the compressed information in another parameter.

## Return Values

Returns LR_FAIL if the source parameter does not exist or if the compression fails.

## Parameterization

Standard parameterization does not apply to this function.

## Example

Copy code

    function Action(){
        lr.saveString("This is the text I want to zip.","param1");
        lr.zip("target=param2", "source=param1");
        lr.zip("source=param1", "target=param3");
        lr.unzip("source=param3", "target=param4" );

        lr.outputMessage(lr.evalString("{param4}"));

       return 0;
    }

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: