Software Developer's Kit - ChemDraw

Send comments on this topic
LongValue Property
See Also 


Member of ChemDraw Control.ObjectTag.

Sets and returns the value of the tag as an integer number.

Property type

Read-write property


Visual Basic
Public Property LongValue() As Long

Return Type



Sets and returns the value of the tag as a long number. See ObjectTag.ObjectTagType property and ChemDrawCtl.Objects.FilterByTagLong.


'Shows example of LongValue property
 Dim myObjectTag as ChemDrawControl10Ctl.ObjectTag
 Dim myObject as ChemDrawControl10Ctl.Object
 Dim vName as String 
 Dim varLongValue as Long 

 Private Sub Load_ObjectTag_Click()
    If  myObjectTag is Nothing Then
        vMessage = MsgBox(“No ObjectTag is loaded”, vbCritical + vbOKOnly, “Error”)
        vName = “Name_of_ObjectTag”
        ‘Makes an ObjectTag
        myObject.MakeObjectTag vName, myObjectTag, True
        ‘ObjectTag must be visible
        myObjectTag.Visible = True
        ‘Assigns the content of varLongValue to ObjectTag.StringValue 
        myObjectTag.StringValue = StrConv(varLongValue) 
        ‘myObjectTag.LongValue = varLongValue
    End If
End Sub

See Also