Software Developer's Kit - ChemDraw

Send comments on this topic
WarningsIgnored Property
See Also 

Description

Member of ChemDraw Control.ObjectTag.

Returns whether the warnings of this ObjectTag should be ignored or not.

Property type

Read-write property

Syntax

Visual Basic
Public Property WarningsIgnored() As Boolean

Return Type

Boolean

Remarks

Indicates whether chemical warnings should be suppressed, or not, on this object. This property is set to False by default. Chemical warnings will be displayed (in the form of red boxes) on objects that have various types of unusual chemistry.  If this property is set to True, no warnings will be displayed on the object.

Example

'Declares variable vObject - Object can be any ChemDraw object
 Dim vObject As ChemDrawControl10Ctl.object
'Checks that there is an object loaded in the variable
 If  Selection.Objects.Count < 1 Then
     Exit Sub
 End If
 Private Sub cmdWarningsIgnored_Click()
    'Toggles the value of WarningsIgnored
     If  vObject.WarningsIgnored = True Then
         vObject.WarningsIgnored = False
     Else
         vObject.WarningsIgnored = True
     End If
 End Sub

See Also