Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   Delphi: getting the name of the current unit (https://www.delphipraxis.net/206770-delphi-getting-name-current-unit.html)

DP News-Robot 28. Jan 2021 05:10

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 […]

Weiterlesen...


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