Skip to content

MvCLOSE#


Closes the database alias opend using . If name omitted, primary database alias (the one most recently opened with or ) is closed. All open databases are automatically closed when a MivaScript program finishes executing.

Syntax
<MvCLOSE NAME = "string: {  expression } | literal"> 

It’s good programming practice to close a database once you are finished working with it. This can prevent runtime errors if another process attempts to open a file using the same alias.

Attributes#

Attribute Description
NAME (Required) Database alias. When a database is opened with MvOPEN, it is referenced in all other database commands by the alias. This lets you open the same database file with multiple aliases, often with different indexes.

Example#

<MvCLOSE NAME="products">