lrc_save_currency

Parameterization ("save") Functions

Saves a currency value to a string parameter.

int lrc_save_currency( const char* param_name, CY val );
int lrc_save_currency_by_ref( const char* param_name, CY *val ); 
param_name The name of the string parameter in which to store the value.
val The value to be saved.

The lrc_save_currency function saves a currency (CY) value to a string parameter.

int lrc_save_currency_by_ref( const char* param_name, CY *val );

The lrc_save_currency_by_reffunction saves the currencypointed to by "val" to 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.

Return Values

lrc Return Values

Parameterization

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

Example

This example saves the Boolean value "true" to a string:

VARIANT_BOOL var = lrc_bool("true");
lrc_save_bool("param-name",var);