---
title: "getActiveShelfTab"
canonical: "https://help.vicon.com/space/ShogunPost121/1253737223/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

> Macro (scroll-tablelayout)

|  |
| --- |
| `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/ShogunPost121/pages/1253738413)
- [deleteAllTabItems](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737096)
- [deleteTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737436)
- [findTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738418)
- [getTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253738257)
- [getTabSelItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253736870)
- [selectTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737385)
- [setTabHandler](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253739964)