What version of vclunit.pas has been changed to "Vcl.vclunit.pas"?

I made the component in Delphi 2007, and now I want it to work with new versions of Delphi, so I have to change the usage using uses Controls;
for the image uses {$if CompilerVersion > 21}Vcl.Controls{$else}Controls{$ifend}; .
But I do not know the version of the compiler that I have to write. Does anyone know this?

+4
source share
1 answer

Area object names were introduced in XE2. And XE2 is the version of compiler 23. Thus, the condition is:

 {$if CompilerVersion >= 23} 
+5
source

All Articles