Load


Description

The contents of the current model are replaced by loading (from disk) a file with a specified name or a the name found in aModel.FileName.

Syntax

aModel.Load(Filename, ErrorFilename, DoRemember)

 

Parameter

Description

aModel

a Model object.

Filename

Optional. A string specifying a file to load. If FileName is not given, the current FileName of the model is used. If the FileName is not given and the model's FileName property has no value, an error is raised.

ErrorFilename

Optional. A string specifying an file in which to write error messages if file loading fails. By default, no error messages are written.

DoRemember

Optional. A Boolean that tells if the filename loaded should be remembered in the model's FileName property. The default value is True.

Return Value

None.

Example

See: Loading Models, etc.: an Overview

Also See

The Reset Event

Applies To

Model