Method: Item for ReportObjects

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 object that is associated with a specific name or with a specific index.

Set oReportObject = Object.Item(NameOrIndex)
ObjectReportObjects
Object with this method
NameOrIndexVariant
Specifies the name or the index of the object.
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 types and the names of all the objects in the current worksheet:

Dim oMyObjects, i, sOutput
sOutput = ""
Set oMyObjects = Report.ActiveSheet.Objects
For i = 1 to oMyObjects.Count
  sOutput = sOutput & "Object type: " & oMyObjects.Item(i).ObjectType & vbTab & _
                      "Element name: " & oMyObjects.Item(i).Name & vbCrLf
Next
Call MsgBoxDisp(sOutput)

WAS THIS ARTICLE HELPFUL?

Not Helpful