Share this page

# Example: web_save_param_length

In these examples, web_save_param_length creates three new parameters, Param7_Length, Param10_Length,and Param16_Length, and stores the length of each respective source parameter as a hexidecimal number.

        // Create a parameter 7 characters long
        lr_save_string("ABCDEFG", "Param7");
        web_save_param_length("Param7", "Base=Hexadecimal", LAST );
        // Output: Action.c(9): Notify: Saving Parameter "Param7_Length = 7"
        // Create a parameter 10 characters long
        lr_save_string("ABCDEFGHIJ", "Param10");
        web_save_param_length("Param10", "Base=Hexadecimal", LAST );

    //Output is in hexadecimal:
        //Action.c(14): Notify: Saving Parameter "Param10_Length = A"
        // Create a parameter 16 characters long
        lr_save_string("ABCDEFGHIJKLMNOP", "Param16");
        web_save_param_length("Param16", "Base=Hexadecimal", LAST );
        //Output is in hexadecimal:
        //Action.c(18): Notify: Saving Parameter "Param16_Length = 10"

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