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:

Component
EVENT_COMPONENT
DATA_COMPONENT
UI_COMPONENT
CTRL_COMPONENT
ASCII_COMPONENT
REDU_COMPONENT
DIST_COMPONENT
APC_COMPONENT
ARCHIV_COMPONENT
BACNET_COMPONENT
CERB_COMPONENT
CHMGR_COMPONENT
DATABG_COMPONENT
DL_COMPONENT
DNP3_COMPONENT
EIP_COMPONENT
IEC_COMPONENT
GETCMLICINFO_COMPONENT
IEC61850_COMPONENT
LANG_COMPONENT
LICENSEMLFB_COMPONENT
MOD_COMPONENT
MODSRV_COMPONENT
MQTT_COMPONENT
MQTTPUB_COMPONENT
NEXTGENARCH_COMPONENT
NTCIPGW_COMPONENT
OLEDB_COMPONENT
OPC_COMPONENT
OPCAE_COMPONENT
OPCHDA_COMPONENT
OPCHDASRV_COMPONENT
OPCSRV_COMPONENT
OPCSRVAE_COMPONENT
OPCUA_COMPONENT
OPCUASRV_COMPONENT
PID_COMPONENT
PMON_COMPONENT
PROFISAFE_COMPONENT
RDB_COMPONENT
RK512_COMPONENT
S7_COMPONENT
S7PLUS_COMPONENT
SBUS_COMPONENT
SIM_COMPONENT
SINAUT_COMPONENT
SNMP_COMPONENT
SNMPA_COMPONENT
SPLIT_COMPONENT
SSI_COMPONENT
TLP_COMPONENT
TLS_COMPONENT
TLSGW_COMPONENT
VALARCH_COMPONENT
VIDEO_COMPONENT
VRMPRX_COMPONENT
BUILDIDLIST_COMPONENT <Internal use only>
CHTRANS_COMPONENT
CONVERTDB_COMPONENT
CREATEDB_COMPONENT
ENCRYPTCTRL_COMPONENT
GETHW_COMPONENT
LICENSE_COMPONENT
LOGVIEWER_COMPONENT
MEDIA_COMPONENT
NAMETOID_COMPONENT
PARSE_COMPONENT
REPAIRDB_COMPONENT
REPORTING_COMPONENT
REVISE_COMPONENT
SYNCTYPES_COMPONENT
SYSNAMES_COMPONENT
TRANS_COMPONENT
TUNNEL_COMPONENT

Example

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

Assignment

Availability

CTRL