Content Prev Next Down

Setting the Current Item
Syntax spitem()
spitem(itemID)
See Also spopen , spsection , spgraphpage , scontour

Description
Select and open the specified SigmaPlot Notebook item. If present, the argument itemID must be a character row vector or integer scalar for a Folder, Worksheet, or graph page in the current notebook. The spitem function always returns an integer scalar which is the number of items in the current notebook.

Examples
If SigmaPlot is not running and you enter the following
clear
spopen
for i = 1 to 5 begin
     spsection("Contours")
     spgraphpage(["Contour", ntoa(i)])
     x = rand(20,20) * i
     scontour(x)
end
SigmaPlot will create a new notebook with five contour plots and the last contour, Contour5 selected.


If you continue the example above by entering
     spitem("Contour2")
SigmaPlot will make the Contour2 graphic page the current item and your interface will look like