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...