Share this page

# Example: lrc_save_BYTE

This example first saves the octal value 131 to parameter, "CharacterParam", as character `Y' then saves the hexadecimal value 50 as character `P':

    Action()

    {

        BYTE byteVal;

        byteVal = lrc_BYTE("\131");

        lr_output_message("Octal 131 = Decimal %u", byteval );

        lr_output_message("Octal 131 = Hex %X", byteval );

        lr_output_message("Octal 131 = char %c", byteval );

        lrc_save_BYTE("CharacterParam", byteval );

        bVal = lrc_BYTE("\x50");

        lr_output_message("Hexadecimal 50 = Decimal %u", byteval );

        lr_output_message("Hexadecimal 50 = Oct %o", byteval );

        lr_output_message("Hexadecimal 50 = char %c", byteval );

        lrc_save_BYTE("CharacterParam", byteval );

        return 0;

    }

    Action.c(7): Octal 131 = Decimal 89

    Action.c(8): Octal 131 = Hex 59

    Action.c(9): Octal 131 = char Y

    Action.c(11): Notify: Saving Parameter "CharacterParam = Y"

    Action.c(15): Hexadecimal 50 = Decimal 80

    Action.c(16): Hexadecimal 50 = Oct 120

    Action.c(17): Hexadecimal 50 = char P

    Action.c(19): Notify: Saving Parameter "CharacterParam = P"

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: