spnActTree: Get/Set active tree (the top tab)

Description Usage Arguments Value Author(s) See Also Examples

Description

Get/Set active tree to Tree by name or index. if Tree=0 only get active tree index; else set one

Usage

1
spnActTree(Tree)

Arguments

Tree

- the name(character string) or the index(integer) of the tree; if 0 - just gets the active tree index.

Value

spnActTree returns the index (1-based index) of the active tree.

Author(s)

Teodor Krastev

See Also

spnActGrp

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
# Initialization of Spectrino
spnNew() 

# generate test set
spnOpenTree("<test>")

# set third group to be active
spnActTree(1)

# get the number of active group
i <- spnActGrp(0) 

# Release of Spectrino
#spnFree(TRUE)

spectrino documentation built on June 4, 2019, 1:02 a.m.