Software Developer's Kit - ChemDraw

Send comments on this topic
DataEncoded Property
See Also 

Description

Member of ChemDrawCtl.

Sets and returns whether the data of the control needs to be encoded to a string value.

Property type

Read-write property

Syntax

Visual Basic
Public Property DataEncoded() As Boolean

Return Type

Boolean

Remarks

Sets and returns whether the data of the control needs to be encoded to a string value or not.

Example

Private Sub cmdCommand_Click()  
    ChemDrawCtl.Objects.Clear
    'input binary (not encoded) cdx data 
    ChemDrawCtl.DataEncoded = False
    ChemDrawCtl.Data("cdx") = newData
    'output encoded (base64) cdx data
    ChemDrawCtl1.DataEncoded = True
    NewEncoded = ChemDrawCtl1.Data("cdx")

End If

See Also