COM Vuser Functions (LRC) > Alphabetical List of Functions > lrc_variant_bool

lrc_variant_bool

Example: 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.