Delphi版本号对照(条件编译中用到)
Delphi版本号对照(条件编译中用到)
2017年03月25日 16:07:49 OK_boom 阅读数:2034
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}
Technical Comments Edit
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 | CompilerVersion |
Defined Symbol |
---|---|---|
Delphi 10.2 Tokyo | 32 | VER320 |
Delphi 10.1 Berlin | 31 | VER310 |
Delphi 10 Seattle | 30 | VER300 |
Delphi XE8 | 29 | VER290 |
Delphi XE7 | 28 | VER280 |
Delphi XE6 | 27 | VER270 |
AppMethod 1 | 26.5 | VER265 |
Delphi XE5 | 26 | VER260 |
Delphi XE4 | 25 | VER250 |
Delphi XE3 | 24 | VER240 |
Delphi XE2 | 23 | VER230 |
Delphi XE | 22 | VER220 |
Delphi 2010 | 21 | VER210 |
Delphi 2009 | 20 | VER200 |
Delphi 2007 .NET | 19 | VER190 |
Delphi 2007 | 18.5 | VER185 (also VER180) |
Delphi 2006 | 18 | VER180 |
Delphi 2005 | 17 | VER170 |
Delphi 8 .NET | 16 | VER160 |
Delphi 7 | 15 | VER150 |
Delphi 6 | 14 | VER140 |
Delphi 5 | 13(*) | VER130 |
Delphi 4 | 12(*) | VER120 |
Delphi 3 | 10(*) | VER100 |
Delphi 2 | 9(*) | VER90 |
Delphi 1 | 8(*) | VER80 |
(*) These versions did not have a CompilerVersion constant, it was introduced with Delphi 6.
- 点赞 1
- 收藏
- 分享
- 文章举报
- Delphi中易混淆的概念
- Delphi中建议使用的语句
- delphi读XML
- Delphi下Webbrowser的使用技巧
- delphi 在DLL中添加窗体.
- 关于DELPHI2010 安装GLScene V1.2的相关总结!
- DELPHI 异常处理
- delphi传递与复制对象(DELPHI5从入门到精通75页)
- 关于delphi制作安装文件的问题!急,急,急!
- 请教关于Delphi 开发使用报表
- Delphi全局变量带来的问题
- Delphi中出现小问题及处理
- 有关 delphi7读取 excel 报错EoleException with message '未找到提供程序,该程序可能未能正确安装' 解决方式
- delphi7+ado+sqlsever2008数据库软件发布打包些什么东,还有人用delphi 么,求好友
- 【逆向】Delphi程序逆向之熊猫烧香病毒分析
- delphi下的编程
- Delphi结构类型包含String字符串使用需要注意的地方
- 第一个Delphi7.0 图形界面程序:显示唐诗静夜思
- Delphi里面的TCriticalSection对象的用法(如何使用锁)
- 在DELPHI程序中自动设置ODBC数据源