Share this page

# lrc_variant_ascii_BSTR_by_ref

Assignment to Variants - By Reference and By Variant

Assigns a string to an ascii BSTR value stored by reference in a variant.

    VARIANT lrc_variant_ascii_BSTR_by_ref( const char* str );

str | A character string.

The lrc_variant_ascii_BSTR_by_ref function assigns a string to an ascii BSTR value stored by reference in a variant.

Note: In the COM protocol, ascii functions are not supported for multibyte languages. Use a parallel function without the word ascii, for example, lrc_variant_BSTR_by_ref.

## Return Values

lrc Return Values

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Example

This example assigns a string to an ascii BSTR value stored by reference in a variant.

    VARIANT var = lrc_variant_ascii_BSTR_by_ref("ABRACADABRA");

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: