---
title: "getActiveShelfTab"
canonical: "https://help.vicon.com/space/ShogunPost116/341117916/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/ShogunPost116/pages/341117038)
- [deleteAllTabItems](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341117613)
- [deleteTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341117684)
- [findTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341117850)
- [getTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341118725)
- [getTabSelItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341118731)
- [selectTabItem](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341119692)
- [setTabHandler](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost116/pages/341120203)