getComponentName()

Returns the name of a component.

Synopsis

string getComponentName (int component);

Parameters

Parameter Description
component Component for which the full name should be returned.

Return value

Name of the component

Error

In case of an error, the function returns an empty string.

Description

Returns the name of the stated component. The following components can be stated:

Example

main()
{
        DebugN(getComponentName(EVENT_COMPONENT));
        //Writes the name of the Event component to the log viewer.
}

Assignment

Availability

CTRL