Name

ModuleIsLib Variable

Syntax

unit SysInit;
var ModuleIsLib: Boolean;

Description

ModuleIsLib is True for a unit that is part of a DLL or package, and False for a unit linked statically with an application.

Tips and Tricks

Unlike most other system variables, ModuleIsLib is not shared among all packages in an application. This makes it more useful than the IsLibrary variable.

See Also

HInstance Variable, IsLibrary Variable, Library Keyword, ModuleIsPackage Variable, Package Directive

Get Delphi in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.