Performing Complex Actions Using Methods

From ER/Studio Data Architect
Jump to: navigation, search

Go Up to Automation Objects Programmer's Guide

Methods perform actions more complex than the simple setting or reading of a property. For example, OpenFile() is a DiagramManager method that in turn invokes a number of other operations: it must navigate the directory/file system, allocate resources for file handling, keep track of the file handle and attributes and so on.

Dim MyDiagram As Diagram

Dim strFile As String

strFile = "C:\Users\<user>\AppData\Roaming\IDERA\ERStudio\Model\MyModel.dm1 "

Set MyDiagram = DiagramManager.OpenFile(strFile)


See Also