在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
http://delphi.wikia.com/wiki/CompilerVersion_Constant The CompilerVersion constant identifies the internal version number of the Delphi compiler. It is defined in the System unit and may be referenced either in code just as any other constant: if CompilerVersion = 20 then sCompilerName := 'Delphi 2009'; or in conditional compiler expressions: {$if CompilerVersion > 18} // Delphi 2007 or later {$ifend} The CompilerVersion constant was introduced in Delphi 6 along with conditional expressions. In earlier Delphi versions various compiler defined VERxxx symbols are used to determine compiler versions. CompilerVersion values and the equivalent compiler defined symbols for the Delphi versions in which the CompilerVersion constant is defined are: Compiler Defined Symbol Delphi XE5 Delphi XE4 Delphi XE3 Delphi XE2 Delphi XE Delphi 2010 Delphi 2009 Delphi 2007 .NET Delphi 2007 Delphi 2006 Delphi 2005 Delphi 8 .NET Delphi 7 Delphi 6 Delphi 5 Delphi 4 Delphi 3 Delphi 2 Delphi 1 http://delphi.wikia.com/wiki/Borland_Compiler_Conditional_Defines Product Name Conditional Define CompilerVersion Embarcadero RAD Studio XE5 Embarcadero RAD Studio XE4 Embarcadero RAD Studio XE3 Embarcadero RAD Studio XE2 Embarcadero RAD Studio XE Embarcadero RAD Studio 2010 CodeGear C++ Builder 2009 CodeGear Delphi 2007 for .NET CodeGear Delphi 2007 for Win32 Borland Developer Studio 2006 Borland Delphi 2005 Borland Delphi 8 for .NET C++BuilderX Borland C#Builder Borland Delphi 7 Borland Kylix 3 Borland C++Builder 6 Borland Kylix 2 Borland Delphi 6 Borland Kylix Borland C++Builder 5 Borland Delphi 5 Borland C++Builder 4 Borland Delphi 4 Borland C++Builder 3 Borland Delphi 3 Borland C++ 5 Borland C++Builder 1 Borland Delphi 2 Borland C++ 4.5 Borland Delphi Borland C++ 4 Borland Pascal 7 Borland C++ 3.1 Turbo Pascal for Windows 1.5 Turbo C++ for DOS 3 Borland C++ 3 Turbo C++ for Windows 3 (Win16) Turbo Pascal for Windows 1.0 Borland C++ 2 Turbo Pascal 6 Turbo C++ for DOS Turbo C for DOS 2 Turbo Pascal 5.5 Turbo C for DOS 1.5 Turbo Pascal 5 Turbo Pascal 4 Turbo C for DOS Turbo Pascal 3 Turbo Pascal 2 Turbo Pascal 1 * This conditional define is shared by the Delphi compilers used to build C#Builder 1 and Delphi 8, which do not natively support Delphi for Win32. This define is used in the "IDE Integration Packs" that were released to Borland partners in order to allow IDE plugins like ModelMaker Code Explorer (http://www.modelmakertools.com/code-explorer/index.html) and Castalia (http://www.delphi-expert.com/castalia3) to be compiled. ** This conditional define is shared between C++Builder 6, Delphi 6, Kylix 1, 2, and 3 (Checking for the conditional define "LINUX" helps to determine whether the compiler is Kylix or Delphi and "BCB" can be used to determine if C++Builder is being used). *** This conditional define is shared with C++Builder 5 **** C++Builder 3.0 used VER110 (it had its own version of the Delphi compiler included). **** CompilerVersion (Delphi 6 or later) can be used with conditional directives like
or using code:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论