« Back to Product

Documentation

RegisterPropertyBoolean

Require: IP-Symcon >= 4.0

 void RegisterPropertyBoolean (string $Name, boolean $DefaultValue) 

Parameters

Name

Name of the property

DefaultValue

Default value of the property

Returns

No Return

Description

This function creates a module property of the type Boolean with name Name and default value DefaultValue

Warning

This function can only be called in the Create method!

Example

public function Create() {

    // Don't delete or change this line.
    parent::Create();

    $this->RegisterPropertyBoolean("EmulateStatus", true);
     
}
Any questions?