TreeAge Pro


InfluenceDiagramObj.OpenFile
v1.0
InfluenceDiagramObj - Object Overview
TreeAge Pro - Table of Contents

TreeAge Pro Interactive - Table of Contents

Documentation Home
TreeAge Website Home
  
Syntax: Function OpenFile (fName as String) as Long
Description: This method opens a file.
Return value:  Returns a flag indicating the success of the operation.
Remarks:  You must call this method prior to any other operations on a InfluenceDiagramObj. The file name is subsequently stored in the fileName property for your convenience.

Note that you may not open *.IND files created by TreeAge software versions earlier than DATA 3.0 with TreeAge Pro Interactive. Also, the run-time version of TreeAge Pro Interactive cannot use OpenFile to open influence diagram files.

Technically, a single InfluenceDiagramObj can be used to open multiple files by calling this method multiple times. Only the last file remains active. However, if you need to use several models, it would be better to create multiple InfluenceDiagramObj objects.

During debugging, you may use the message property to see more information about why a tree is not opening.

Sample code: 
Dim inf as New InfluenceDiagramObj, ok as Long
...
ok = inf.OpenFile( "c:\models\example.inf")
See also: Flag values
fileName
message