SetValue method

The SetValue method sets the value of versatile types of variables except ExpandString one.  

BOOL SetValue(
 BSTR Name,// The name of the variable
 VARIANT Value// The value to be set

  Name     [in] This is the name of the variable whose value should be changed.   Value     [in] This is the value that should be set.
Return values
  The SetValue method returns TRUE if the value is successfully set and FALSE otherwise.

See also
GetValue method