Share this page

# lrc_variant_bool

Assignment to Variants

Assigns a string to a Boolean value in a variant.

    VARIANT lrc_variant_bool( const char* str );

    VARIANT lrc_variant_bool_by_variant( const char* str );

str | A character string containing either "true" or "false"

The lrc_variant_bool function converts a string containing either "true" or "false" into a Boolean value stored in a variant.

The lrc_variant_bool_by_variant function converts a string containing either "true" or "false" to a Boolean value and returns a variant containing a reference to the variant containing the value.

## Return Values

lrc Return Values

## Parameterization

Parameterization is not applicable to this function.

## Example

This example assigns the character string into a Boolean value stored in a variant.

    VARIANT var = lrc_variant_bool("false");

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: