# Role out Compiler Version on Action Lists

**URL:** https://www.finalbuilder.com/forums/t/role-out-compiler-version-on-action-lists/1457
**Category:** Discussion
**Created:** [April 5, 2010, 6:01am UTC](https://www.finalbuilder.com/forums/t/role-out-compiler-version-on-action-lists/1457 "2010-04-05T06:01:17Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![backdraft](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/b/ba8739/32.png) [@backdraft](https://www.finalbuilder.com/forums/u/backdraft)
#### Post date: [April 5, 2010, 6:01am UTC](https://www.finalbuilder.com/forums/t/role-out-compiler-version-on-action-lists/1457/1 "2010-04-05T06:01:17Z")

</div>

Hi,

I build Delphi Packages for every Delphi Version from D5 to D2010. There are 6 different packages I have to build.

Currently I copy all Project Compiler Actions for each Delphi Version.

Is it possible to roll out the "Compiler Version" and create one Action for the 6 packages? Then I may call the Action List for every Delphi Version.

Regards

Oliver

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [April 6, 2010, 1:40am UTC](https://www.finalbuilder.com/forums/t/role-out-compiler-version-on-action-lists/1457/2 "2010-04-06T01:40:23Z")

</div>

Hi Oliver,   
  
 You can set the compiler version in the action’s BeforeAction script event which will allow you to change the compiler version based on an action list parameter. The property name is ‘CompilerVersion’ and is an integer. The possible values are:   
  
 cvDelphi3 = 0   
 cvDelphi4 = 1   
 cvDelphi5 = 2   
 cvDelphi6 = 3   
 cvDelphi7 = 4   
 cvBCB3 = 5   
 cvBCB4 = 6   
 cvBCB5 = 7   
 cvBCB6 = 8   
 cvBCB7 = 9   
 cvDelphi2005 = 10   
 cvDelphi2006 = 11   
 cvDelphi2007 = 12   
 cvDelphi2009 = 13   
 cvDelphi2010 = 14   
  
 Example BeforeAction script to select Delphi 2007:   
  
 [code]Action.CompilerVersion = 12;[/code]   
  
 Regards,   
 Paul.

---

<div class="post-metadata">

### Author: ![backdraft](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/b/ba8739/32.png) [@backdraft](https://www.finalbuilder.com/forums/u/backdraft)
#### Post date: [April 6, 2010, 4:38am UTC](https://www.finalbuilder.com/forums/t/role-out-compiler-version-on-action-lists/1457/3 "2010-04-06T04:38:19Z")

</div>

Hi,

the compiler changing seems to work. But the Library Path seems to be the same for all project.

When chaning from D7 to D2005 he stops compiling with the message "Variable Delphi does not exists".

When changing the Compiler manually the Library Path is changed from $(Delphi)\Lib to $(BDS)\Lib.

I already buy one FinalBuilder Licence this morning, i am very pleased with the fast supprt ...

Regards from Germany

Oliver

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [April 6, 2010, 10:28am UTC](https://www.finalbuilder.com/forums/t/role-out-compiler-version-on-action-lists/1457/4 "2010-04-06T10:28:36Z")

</div>

Hi Oliver   
  
 If you have the “Use Global Delphi Library Path” option checked then it will use the correct library path (although it will not show the correct lib path in the edit field). When that option is not checked, the action has control over the library path. If you want more control over the library path then you can use a variable for it instead, and set the variable value based on the compiler version you are using.

---

<div class="post-metadata">

### Author: ![backdraft](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/b/ba8739/32.png) [@backdraft](https://www.finalbuilder.com/forums/u/backdraft)
#### Post date: [April 6, 2010, 10:40am UTC](https://www.finalbuilder.com/forums/t/role-out-compiler-version-on-action-lists/1457/5 "2010-04-06T10:40:49Z")

</div>

Works fine, thanx a lot
