SetBool method

The SetBool method modifies the value of Integer variable in accordance to Boolean parameter. The Integer variable will be set to “1” if Boolean parameter is TRUE and “0” if Boolean parameter is FALSE.  

BOOL SetBool(
 BSTR Name,// The name of Integer variable
 VARIANT_BOOL Value// The Boolean parameter to comply with

  Name     [in] This is the name of Integer variable whose value should be changed.   Value     [in] This is Boolean value that toggles the Integer variable to zero or one.
Return values
  The SetBool method returns TRUE if the value is successfully set and FALSE otherwise.

See also
GetBool method, SetValue method, GetValue method, SetInt method