lrc_save_variant_<Type-Name>

Example: lrc_save_variant_<Type-Name>Parameterization ("save") Functions

Saves the value of a variant of the specified type as a string.

int lrc_save_variant_<Type-Name>( const char* param_name, VARIANT val );
param_name The name of the string parameter in which to store the value.
val The value to be saved.

The lrc_save_variant_<Type-Name> family of functions are generated by VuGen to save a value of the specified <Type-Name>, stored in a variant, as a string parameter.

VuGen generates these functions as commented-out calls. To use the parameter, change the recorded param_name argument to a meaningful name and uncomment the call.

See also, the lrc_save_VARIANT function.

The functions in this group are:

int lrc_save_variant_short( const char* param_name, VARIANT val );
int lrc_save_variant_ushort( const char* param_name, VARIANT val );
int lrc_save_variant_char( const char* param_name, VARIANT val );
int lrc_save_variant_int( const char* param_name, VARIANT val );
int lrc_save_variant_uint( const char* param_name, VARIANT val );
int lrc_save_variant_ulong( const char* param_name, VARIANT val );
int lrc_save_variant_BYTE( const char* param_name, VARIANT val );
int lrc_save_variant_long( const char* param_name, VARIANT val );
int lrc_save_variant_float( const char* param_name, VARIANT val );
int lrc_save_variant_double( const char* param_name, VARIANT val );
int lrc_save_variant_bool( const char* param_name, VARIANT val );
int lrc_save_variant_scode( const char* param_name, VARIANT val );
int lrc_save_variant_currency( const char* param_name, VARIANT val );
int lrc_save_variant_date( const char* param_name, VARIANT val );
int lrc_save_variant_BSTR( const char* param_name, VARIANT val );

Return Values

lrc Return Values

Parameterization

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