Share this page

# lrc_variant_int

Assignment to Variants

Assigns a string to an integer in a variant.

    VARIANT lrc_variant_int( const char* str );

str | A character string representing an integer.

The lrc_variant_int function converts a string to an 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 integer stored in a variant.

    VARIANT var=lrc_variant_int("5000");

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: