Loads a library of WINDEV objects in memory (.WDL). This function is used to:
- use custom libraries for each user. This allows you to create several libraries and to install one of these libraries according to the user.
- divide a "large" library into several "smaller' libraries, loaded upon request.
This library will be loaded in memory until:
// Initialization code of project
// The library depends on the user
LibraryName, User are strings
hWDL_ is int
User = CommandLine("User")
SWITCH User
CASE User1: LibraryName = "USER1.WDL"
CASE User2: LibraryName = "USER2.WDL"
CASE User3: LibraryName = "USER3.WDL"
END
hWDL_ = LoadWDL(LibraryName)
Syntax
<Result> = LoadWDL(<Library name>)
<Result>: Integer
- Identification number (handle) of the library
- -1 if the library failed to be loaded.
<Library name>: Character string
Name and full (or relative) path of the library to load.