Object: CommentSelectedElement

DIAdem 2018 Help


Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)


DIAdem 2015 Help
DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help
DIAdem 2020 Help

The CommentSelectedElement object provides a selected element from a comment in DIAdem REPORT.

The following example displays the selected elements of a comment:

Dim oMyReportObj, oMyReportObjects, oMySelection, sOutput
sOutput = ""
Set oMyReportObjects = Report.ActiveSheet.Objects
For Each oMyReportObj in oMyReportObjects
  If oMyReportObj.ObjectType = eReportObjectComment Then
    Call MsgBoxDisp("Object name: " & oMyReportObj.Name & _
    vbCrLf & "Number of selected elements: " & oMyReportObj.SelectedElements.Count)
    For Each oMySelection in oMyReportObj.SelectedElements
      sOutput = sOutput & "Element type: " & oMySelection.Type & vbCrLf
    Next
  End If
Next
Call MsgBoxDisp(sOutput)

Properties

Type

WAS THIS ARTICLE HELPFUL?

Not Helpful