« Back to Product

Documentation

RegisterPropertyFloat

Require: IP-Symcon >= 4.0

 void RegisterPropertyFloat (string $Name, float $DefaultValue) 

Parameters

Name

Name of the property

DefaultValue

Default value of the property

Returns

No Return

Description

This function creates a property of type float with name Name and default value DefaultValue

Warning

This function can be called in the Create method only!

Example

public function Create() {

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

    $this->RegisterPropertyFloat("Factor", 0.5);
    
}
Any questions?