I have a case in Delphi such as:
-
Unit
Acontains classOne -
Unit
Bcontains classOne
I’m in a class that uses unit A and I want to use a static function from the class One in B; how can I do it?
In C#, I’d write something like:
B.One.SomeProcedure
Or even, I would use using to "rename" one namespace. What can I do in Delphi? Removing the uses for unit A is not an option, nor is renaming one of the two classes.
I’m using Delphi 2007.
You can use the following way: [UnitName].[Function]. For example B.SomeProcedure