Share this page

# lrc_variant_BYTE

Assignment to Variants

Assigns a string to an unsigned char (byte) value stored in a variant.

    VARIANT lrc_variant_BYTE( const char* str );

    VARIANT lrc_variant_BYTE_by_variant( const char* str );

str | A character string representing a byte (0 ?" 255).

The lrc_variant_BYTE function converts a string to an unsigned char (byte)value stored in a variant.

The lrc_variant_BYTE_by_variant function converts a string to an unsigned char (byte) value and returns a variant containing a reference to the variant containing the byte.

The additional function lrc_variant_BYTE_by_variant is used when a variant to a variant of the BYTE is required.

## Return Values

lrc Return Values

## Parameterization

Parameterization is not applicable to this function.

## Example

This example assigns a string to an unsigned char (byte) value stored in a variant.

    VARIANT var = lrc_variant_BYTE("&");

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: