lrc_variant_int

Assignment to Variants

Assigns a string to an integer in a variant.

VARIANT lrc_variant_int( const char* str );
strA 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");