boolean IsExistingAttachment( String sName )
If an attachment with the specified name exists in the DataObject, the return value is true. Otherwise, the return value is false.
String sName
The name of the attachment.
Use this method to determine whether an attachment with the specified name exists in the DataObject.
The DataObject class enables you to add attachments to a DataObject. This enables you to associate additional information about the data in a DataObject with the DataObject itself. The DataObject does not use your attachments. Note that attachments exist only in memory. They are not stored when you store the DataObject.
declare DataObject dobj = DataObject.Create( "Example" ); x = rannor( 1:100 ); dobj.AddVar( "X", x ); dobj.AddAttachedDouble( "X Mean", x[:] ); if dobj.IsExistingAttachment( "X Mean" ) then print "The mean of the X variable has been computed."; else print "The mean of the X variable has not been computed.";