Method: Item for SelectedObjects

DIAdem 2018 Help


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

DOWNLOAD (Windows Only)


DIAdem 2012 Help
DIAdem 2014 Help
DIAdem 2015 Help
DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help

Returns the selected object associated with a specific name or a specific index in DIAdem REPORT.

Set oReportObject = Object.Item(NameOrIndex)
ObjectSelectedObjects
Object with this method
NameOrIndexVariant
Specifies the name or the index of the selected element.
oReportObjectReportObject
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

WAS THIS ARTICLE HELPFUL?

Not Helpful