---
title: "getActiveShelfTab"
canonical: "https://help.vicon.com/space/ShogunPost120/1043039752/getActiveShelfTab"
format: markdown
---
# Description

Returns the name of the shelf tab which is currently selected and active in the GUI.

## Functional area

Interface

# Command syntax

## Syntax

|  |
| --- |
| `getActiveShelfTab` |

### Arguments

None

### Flags

None

## Return value

string

## Examples

```plaintext
// Print the active tab name to the command line 
string $temp = `getActiveShelfTab`;
print $temp;
```

> Macro (scroll-pagebreak)

# Additional information

## Related commands

- [addTab](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038754)
- [deleteAllTabItems](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038324)
- [deleteTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043039797)
- [findTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043039071)
- [getTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038854)
- [getTabSelItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038979)
- [selectTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038392)
- [setTabHandler](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost120/pages/1043038553)