DataView.Exists

Prototypes

boolean Exists()

static boolean Exists( DataView view )

Return Value

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.

Parameters

DataView view
The DataView you want to validate.

Remarks

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.

Example
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"; 
See Also

DataObject.Exists