Lingo Dictionary > A-C > closeXlib

 

closeXlib

Syntax

closeXlib whichFile 

Description

Command; closes the Xlibrary file specified by the string whichFile. If the Xlibrary file is in a folder other than that for the current movie, whichFile must specify a pathname. If no file is specified, all open Xlibraries are closed.

Xtras are stored in Xlibrary files. Xlibrary files are resource files that contain Xtras. HyperCard XCMDs and XFCNs can also be stored in Xlibrary files.

The closeXlib command doesn't work for URLs.

In Windows, using the DLL extension for Xtras is optional.

It is good practice to close any file you have opened as soon as you have finished using it.

Note: This command is not supported in Shockwave.

Example

This statement closes all open Xlibrary files:

closeXlib

Example

This statement closes the Xlibrary Video Disc Xlibrary when it is in the same folder as the movie:

closeXlib "Video Disc Xlibrary"

Example

This statement closes the Xlibrary Transporter Xtras in the folder New Xtras, which is in the same folder as the movie. The disk is identified by the variable currentDrive:

closeXlib "@:New Xtras:Transporter Xtras"

See also

interface(), openXlib, showXlib