SET LIBRARY Command
| Visual FoxPro 9.0 SP2 |
| SET LIBRARY Command |
| See Also |
|
Opens an external API (application programming interface) library file.
SET LIBRARY TO [FileName [ADDITIVE]] |
Parameters
- FileName
-
Specifies the file name of the API library or procedure file to open.
Visual FoxPro assume an .fll extension for libraries. If the library has an .fll extension, you don't have to include the extension with the file name. If a library has an extension other than .fll, you must include the extension with the file name.
Caution When using SET LIBRARY, be aware of the following:
-
You cannot use API libraries built for one platform on another platform. For example, libraries created for FoxPro for MS-DOS cannot be used in Visual FoxPro; libraries created for Visual FoxPro cannot be used in FoxPro for MS-DOS.
-
You cannot use API libraries built for one version on another version. For example, you cannot use libraries built for FoxPro version 2.6 in Visual FoxPro. You must recompile and link.
Visual FoxPro assumes a .prg extension for a procedure file.
When you execute a procedure with DO ProcedureName, Visual FoxPro searches for the procedure in the following files in this order:
-
The file containing DO ProcedureName.
-
A procedure file opened with SET PROCEDURE (if one is set).
-
The programs in the execution chain. Visual FoxPro searches program files beginning with the most recently executed program and continuing back to the first executed program.
-
A procedure file opened with SET LIBRARY (if one is set).
-
A stand-alone program file. If Visual FoxPro finds a program file with the same name as the file name specified with DO, the program is executed. If it doesn't find a matching program file name, Visual FoxPro generates an error message.
-
- ADDITIVE
-
Opens additional API libraries. Include ADDITIVE after the file name in successive SET LIBRARY commands.
Visual FoxPro ignores ADDITIVE when you use SET LIBRARY to open a procedure file.
Remarks
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic
Note
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08