static boolean IsInstance( Object obj )
If obj is an object of the OutputDocument class, the return value is true. Otherwise, the return value is false.
Object obj
A reference to an object.
This method determines whether an object is an instance of the OutputDocument class.
start MyModule( Object obj ); if OutputDocument.IsInstance( obj ) then print "MyModule was passed an OutputDocument object"; else do; /* if not OutputDocument, assume DataView */ declare DataView view = obj; if ScatterPlot.IsInstance( view ) then print "MyModule was passed a ScatterPlot object"; end; finish; declare OutputDocument doc = OutputDocument.GetDefault(); run MyModule( doc ); x = ranuni( 1:50 ); y = ranuni( 1:50 ); declare ScatterPlot plot = ScatterPlot.Create( "Example", x, y ); run MyModule( plot );