Get/Set active group

Share:

Description

Get/Set active group to Grp. if Grp=0 only get active group; else set one

Usage

1
spnActGrp(Grp)

Arguments

Grp

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

Value

spnActGrp returns the number of the active group.

Author(s)

Teodor Krastev

See Also

spnSetSpcChecked

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
spnActGrp(3)

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

# Release of Spectrino
spnFree(TRUE)