Skip to content

GET_ACTIVE_COMP

Calling GET_ACTIVE_COMP returns the id of the currently active component.

Syntax

leo-grammar
SEND "GET_ACTIVE_COMP" to:"Application" answer:id

#--> RETURN	intValue
SEND "GET_ACTIVE_COMP" to:"Application" answer:id

#--> RETURN	intValue

Parameters

none

Returns

  • <main_return_value> (intValue) - Contains the id of the active component.

Details

The following list tells the ids for each component

  • Acquisition 1 (see COMP_acq.png)
  • Modeling 2 (see COMP_mod.png)
  • Analysis 3 (see COMP_ana.png)
  • Simulation 4 (see COMP_sim.png)
  • Evaluation 5 (see COMP_eva.png)
  • ImportExport 6 (see COMP_imp.png)

See Also

Examples

Returns the currently opened component and prints the id in an infobox.

leo-grammar
SEND "GET_ACTIVE_COMP" to:"Application" answer:id
CC "AdoScript" INFOBOX ("The current component has the id " + id)
SEND "GET_ACTIVE_COMP" to:"Application" answer:id
CC "AdoScript" INFOBOX ("The current component has the id " + id)

Versions and Changes

Available since ADOxx 1.3