Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: widgets - Module Up: viewer - Module Previous: skycatalog.type - Function


is_viewer - Function



Package display
Module viewer


Is the argument a viewer tool?


Synopsis
is_viewer(tool)


Description
This global function can be used to determine if the supplied argument is a viewer tool. If so it returns True, otherwise it returns False.


Arguments

tool The variable that you wish to test
Allowed: Any glish variable
Default: no default



Returns
T or F, indicating if the argument is a viewer tool or not.


Example
      include 'viewer.g';
      if (is_viewer(dv)) {
        myviewer := dv;
      } else {
        myviewer := viewer();
      }
This example shows how you can use this function to determine if the default viewer (dv) is a viewer tool.






next up previous contents index
Next: widgets - Module Up: viewer - Module Previous: skycatalog.type - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15