![]() | DIAdem 2017 Help |
![]() | DIAdem 2018 Help |
![]() | DIAdem 2019 Help |
![]() | DIAdem 2020 Help |
![]() | DIAdem 2020 SP1 Help |
Returns the selected object associated with a specific name or a specific index in DIAdem REPORT.
Set oReportObject = Object.Item(NameOrIndex)
Object | SelectedObjects Object with this method |
NameOrIndex | Variant Specifies the name or the index of the selected element. |
oReportObject | ReportObject Returned object |
![]() |
Note You can always omit the Item method because it is the standard element of the collection. |
The following example displays the names of all the selected objects:
Dim oMyReportObjects, sOutput, i Set oMyReportObjects = Report.SelectedObjects If oMyReportObjects.Count > 0 Then For i = 1 to oMyReportObjects.Count sOutput = sOutput & "Name: " & oMyReportObjects.Item(i).Name & vbCrLf Next Call MsgBoxDisp(sOutput) End If
Helpful
Not Helpful