| spnSetSpcChecked {spectrino} | R Documentation |
Set Spc spectrum of Grp spec-group checkbox(es) to checked/unchecked state.
If Spc="*" then all of specs in Grp group are set. If Grp="*" then all of spectra in all groups are set to Checked (in that case Spc is ignored).
spnSetSpcChecked(Grp,Spc,Checked)
Grp |
- the name(character string) or the index(integer) of the group; 0 - active group; "*" - all groups |
Spc |
- the name(character string) or the index(integer) of spec; 0 - selected spec; "*" - all specs. |
Checked |
- logical, the state which will be set |
spnSetSpcChecked returns TRUE if successful, FALSE - otherwise.
Teodor Krastev
spnGetSpcChecked, spnActGrp
# Initialization of Spectrino
spnNew()
# generate test set
spnOpenTree("<test>")
# check just one
spnSetSpcChecked(2,3,TRUE)
# all the spec from second group to OFF
spnSetSpcChecked(2,"*",FALSE)
# all the specs in all groups to ON
spnSetSpcChecked("*","*",TRUE)
# Release of Spectrino
spnFree(TRUE)