boolean Exists()
static boolean Exists( DataView view )
If the DataView exists and is valid, the return value is true. If the DataView does not exist or is not valid, the return value is false.
DataView view
The DataView you want to validate.
This method determines whether a given DataView exists and is valid. An example of a DataView that exists but is not valid is a DataView that has been closed with the Close method.
The static version of the method Exists is useful if the object reference might be null.
declare ScatterPlot plot;
if DataView.Exists( plot ) then
print "Plot exists";
else
print "Plot does not exist";
x = 1:10;
y = x;
plot = ScatterPlot.Create( "Test", x, y );
if plot.Exists() then
print "Plot exists";
else
print "Plot does not exist";