Software Developer's Kit - ChemDraw

Send comments on this topic
NumChemicalWarnings Property
See Also 

Description

Member of ChemDraw Control.Document.

Returns the number of chemical warnings present.

Property type

Read-only property

Syntax

Visual Basic
Public Property NumChemicalWarnings() As Long

Return Type

Long

Remarks

Returns the number of chemical warnings present in the drawing in a particular moment.

Example

'Declares variables 
 Dim myDocument As ChemDrawControl11Ctl.Document 
 Dim myApp As ChemDrawControl11Ctl.Application

 Private Sub cmdCommand_Click()
     Set MyApp = ctlChemDraw.Application
     Set myDocument = myApp.ActiveDocument 
     Command2.Caption = myDocument.NumChemicalWarnings
 End Sub

See Also