Share this page

# lrc_variant_char

Assignment to Variants

Assigns a string to a char type in a variant.

    VARIANT lrc_variant_char( const char* str );

str | A character string containing a char type.

The lrc_variant_char function converts a string into a char and returns the char in a variant.

## Return Values

lrc Return Values

## Parameterization

Parameterization is not applicable to this function.

## Example

This example assigns a string to a char in a variant.

    VARIANT var = lrc_variant_char("1");

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