« Back to Product

Documentation

IPS_SetIcon

Require: IP-Symcon >= 2.1

 boolean IPS_SetIcon (int $ObjectID, string $Icon) 

Parameters

ObjectID

The ID of the object

Icon

Filename of the icon without path and extension

Returns

If the command succeeds, it returns TRUE, otherwise FALSE.

Description

This function assigns an icon to the object with the ID ObjectID. The name of the icon is the filename without the extension or path.

Warning

A list of available icons can be found under Icons

Example

IPS_SetIcon(47381, "weather");
Any questions?