Description Usage Arguments Value Author(s) See Also Examples
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).
1 | 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
none
Teodor Krastev
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.