Software Developer's Kit - ChemDraw

Send comments on this topic
IODataTypes Property
See Also 

Description

Member of ChemDrawCtl.

Returns all data types that can be both imported and exported.

Property type

Read-only property

Syntax

Visual Basic
Public Property IODataTypes() As DataTypes

Return Type

Remarks

A DataType object defines a data type, which is an extension, a MIME type and a flag indicating whether it is valid.

Example

Private Sub cmdCommand1_Click() 
     Dim #Counter As Integer 
     Open CurDir() & "\myLog.doc" for Output as #1
     Dim myDataType As DataType, i As Integer, s As String  
     'sends to printer all the IODataTypes
     Print #1, "IO Data Types are: " 
     Counter = 0 

     For  Each myDataType In ChemDrawCtl1.IODataTypes
          s = myDataType.MIME
          If  myDataType.Extension <> "" Then
              s = s & " (" & myDataType.Extension & ")"
          End If
          Print #1, Counter & vbTab & s 
          Counter = Counter + 1  
     Next myDataType 
     Print 1, Chr$(12); 'page break  
     Close #1
 End Sub

See Also