最新的Delphi版本号对照

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

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:

CompilerCompilerVersion

Defined Symbol

Delphi 10.2 Tokyo32VER320
Delphi 10.1 Berlin31VER310
Delphi 10 Seattle30VER300
Delphi XE829VER290
Delphi XE728VER280
Delphi XE627VER270
AppMethod 126.5VER265
Delphi XE526VER260
Delphi XE425VER250
Delphi XE324VER240
Delphi XE223VER230
Delphi XE22VER220
Delphi 201021VER210
Delphi 200920VER200
Delphi 2007 .NET19VER190
Delphi 200718.5VER185 (also VER180)
Delphi 200618VER180
Delphi 200517VER170
Delphi 8 .NET16VER160
Delphi 715VER150
Delphi 614VER140
Delphi 513(*)VER130
Delphi 412(*)VER120
Delphi 310(*)VER100
Delphi 29(*)VER90
Delphi 18(*)VER80

 

(*) These versions did not have a CompilerVersion constant, it was introduced with Delphi 6.

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值