What is the compiler version for Delphi 2010?

后端 未结 5 1145
忘了有多久
忘了有多久 2020-12-02 19:19

In Delphi 2010, if I want to do this:

{$IFDEF VER999}
//some delphi 2010-specific code here
{$ENDIF}

What version # do I need to use in pla

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 19:52

    If you're working with Delphi 6 and later, you can use CompilerVersion:

    {$IF CompilerVersion >= 18.5}
    //some code only compiled for Delphi 2007 and later
    {$IFEND}
    
    Delphi 10.2 Tokyo  - 32
    Delphi 10.1 Berlin - 31
    Delphi 10 Seattle  - 30
    Delphi XE8         - 29
    Delphi XE7         - 28
    Delphi XE6         - 27
    Appmethod 1.0      - 26.5
    Delphi XE5         - 26
    Delphi XE4         - 25
    Delphi XE3         - 24
    Delphi XE2         - 23
    Delphi XE          - 22
    Delphi 2010        - 21
    Delphi 2009        - 20
    Delphi 2007        - 18.5
    Delphi 2006        - 18
    Delphi 2005        - 17
    Delphi 8           - 16
    Delphi 7           - 15
    Delphi 6           - 14
    

提交回复
热议问题