Code: Select all
$index = tab("get", "index");
$id = tab("get");
Or id is simply a modern, better name for index?
Code: Select all
$index = tab("get", "index");
$id = tab("get");
So no, not the same. ID stays the same no matter the tabs index, index can change if you drag the tab left or right for example."ID":
returns the ID of the tab referred to by index (or by ID). The ID is a unique and stable
identifier for a tab that never changes as long as the tab lives. The smallest possible ID
is 1.
"index":
returns the index of the tab referred to by ID (or by index). The smallest possible index
is 1 and refers to the leftmost tab.
index
Refers to a tab by its position, first tab = 1
Defaults to the current tab. See also individual descriptions above under each operation
.
ID
Unique and stable identifier for a tab that never changes as long as the tab lives. Does
not change if tab is moved.
The smallest possible ID is 1.
msg tab("get"); in each tab. The tab with Windows will return 1. The tab with Program Files will return 2.tab("get"); is the same as tab("get", "id");