Share this page

# lrc_variant_ushort

Assignment to Variants

Assigns a string to an unsigned short integer in a variant.

    VARIANT lrc_variant_ushort( const char* str );

str | A character string representing an unsigned short integer.

The lrc_variant_ushort function converts a string to an unsigned short integer and returns it in a variant.

## Return Values

lrc Return Values

## Parameterization

Parameterization is not applicable to this function.

## Example

This example assigns a string to an unsigned short integer in a variant.

    VARIANT var = lrc_variant_ushort( "300" );

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: