![]() |
Delphi: getting the name of the current unit
If you have a class (like TMyClass) in the current unit, you can get the unit name as follows: inside a method of the class (either instance or class method): call UnitName*or UnitScope*to get the unit name outside a method of the class: call TMyClass.UnitName*or TMyClass.UnitScope Delphi added UnitName*[WayBack] and**Delphi XE2 added UnitScope*[Archive.is]. Their implementations […]
![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:16 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz