|
Open the specified package file.
Syntax
object.Open filename [, password] [, mode]
The Open method syntax has the following parts:
| Part |
Description |
| object |
An object expression that evaluates to a
Package object. |
| filename |
A string which specifies the name of the
package file. This file must exist, and the current user must have permission to access
the file. |
| password |
A string which specifies the password for the
package file. This parameter is optional and may be ommitted if the package does not have
a password. |
| mode |
A numeric value which specifies how the
package file should be opened. This parameter is optional. |
Settings
The settings for the mode parameter are:
| Value |
Description |
| apUpdate |
The package should be opened for read and
write access. If the file does not exist, an error is generated. This is the default
access mode if the parameter is not specified. |
| apCreate |
The package should be opened for read and
write access. If the file does not exist, it will be created. If the file does exist, it
will be overwritten. |
| apReadonly |
The package should be opened for read-only
access. The contents of the package can be read and applied, but cannot be modified. |
Remarks
The Open method can be used to explicitly
open a package file for read and write or read-only access. This method will update
the FileName and Password properties as appropriate.
See Also
FileName Property,
Password Property, Close
Method, Flush Method
|
|