DIAdem Help

Method: Item for Areas

  • Updated2024-09-12
  • 1 minute(s) read

Method: Item for Areas

Returns the Area object associated with a specific name or index in DIAdem VIEW.

Set oArea = Object.Item(NameOrIndex)
ObjectAreas
Object with this method
NameOrIndexVariant
Specifies the name or the index of the specific area.
DIAdem compiles the index from the list of alphabetically sorted area names. The index of an area might change when the number of name of the area change.
oAreaArea
Returned object
Note  You can always omit the Item method because it is the standard element of the collection.

The following example displays a message with the name of the first area. The second line of the example is the simplified form of the first line:

VBScriptPython

 

Call MsgBoxDisp("Name of first area: " & View.ActiveSheet.Areas.Item(1).Name)
Call MsgBoxDisp("Name of first area: " & View.ActiveSheet.Areas(1).Name)