Skip to content

DISABLE_COMP ​

The command DISABLE_COMP disables one of the selected components.

Syntax ​

leo-grammar
CC "Application" DISABLE_COMP [ all ] [ acquisition ] [ modeling ]
    [ analysis ] [ simulation ] [ evaluation ] [ importexport ]
#--> RESULT ecode:intValue

Parameters ​

none

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success.

Details ​

By passing all, all components are disabled. The command ENABLE_COMP enables one of the selected components. By passing all, all components are enabled.

A disabled component can not be selected by the user. Disabled components are visualized as grayed icons (see DISABLE_COMP.png) .

Enabled components are displayed in color and can be selected by the user (see ENABLE_COMP.png) .

See Also ​

ENABLE_COMP

Examples ​

First disables the modeling component and shows an infobox so that the user can see the result. The disables all, after that enables only the modeling and finally all components.

leo-grammar
CC "Application" DISABLE_COMP modeling
CC "AdoScript" INFOBOX "Modeling has been disabled"
CC "Application" DISABLE_COMP all
CC "AdoScript" INFOBOX "All components have been disabled"
CC "Application" ENABLE_COMP modeling
CC "AdoScript" INFOBOX "Modeling has been enabled again"
CC "Application" ENABLE_COMP all
CC "AdoScript" INFOBOX "All components have been enabled"

Versions and Changes ​

Available since ADOxx 1.3