# Options Object for Delphi in FinalBuilder 7

**URL:** https://www.finalbuilder.com/forums/t/options-object-for-delphi-in-finalbuilder-7/1972
**Category:** Discussion
**Created:** [April 20, 2012, 4:29am UTC](https://www.finalbuilder.com/forums/t/options-object-for-delphi-in-finalbuilder-7/1972 "2012-04-20T04:29:31Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zunzster](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/zunzster/32/40_2.png) [@zunzster](https://www.finalbuilder.com/forums/u/zunzster)
#### Post date: [April 20, 2012, 4:29am UTC](https://www.finalbuilder.com/forums/t/options-object-for-delphi-in-finalbuilder-7/1972/1 "2012-04-20T04:29:31Z")

</div>

I'm in the process of updating my FinalBuilder 7 scripts to support XE2 64-bit builds and hitting some problems with my BeforeAction scripts.

The following works in FinalBuilder 7 for Delphi 009 and earlier:

Dim DelphiOptions  
DelphiOptions = GetOptionsObject("Borland Delphi")  
If Action.CompilerVersion = 4 Then  
&nbsp; Action.LibraryPath = Replace(DelphiOptions.D7LibraryPath, "..\..\Newlook\", "..\Newlook\", 1, -1, 1)  
ElseIf Action.CompilerVersion = 11 Then  
&nbsp; Action.LibraryPath = Replace(DelphiOptions.D2006LibraryPath, "..\..\Newlook\", "..\Newlook\", 1, -1, 1)  
ElseIf Action.CompilerVersion = 13 Then  
&nbsp; Action.LibraryPath = Replace(DelphiOptions.D2009LibraryPath, "..\..\Newlook\", "..\Newlook\", 1, -1, 1)  
ElseIf Action.CompilerVersion = 16 Then  
&nbsp; Action.LibraryPath = Replace(DelphiOptions.DXE2LibraryPath64, "..\..\Newlook\", "..\Newlook\", 1, -1, 1)  
End If

&nbsp;I guessed the name for the XE2 64 Library Path since I can't find them documented anywhere and the autocomplete doesn't list them.

&nbsp;Actually, the autocomplete doesn't list D2006LibraryPath or D2009LibraryPath either even though they work.

What are the options object property names for the 32-bit and 64-bit XE2 library paths?

&nbsp;

&nbsp;

---

<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 20, 2012, 6:17am UTC](https://www.finalbuilder.com/forums/t/options-object-for-delphi-in-finalbuilder-7/1972/2 "2012-04-20T06:17:16Z")

</div>

Hi Paul   
  
 Looks like there’s a bug… the GetOptionsObject(“Borland Delphi”) call is actually getting the delphi for .net options… looking into it now.

---

<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 20, 2012, 7:06am UTC](https://www.finalbuilder.com/forums/t/options-object-for-delphi-in-finalbuilder-7/1972/3 "2012-04-20T07:06:36Z")

</div>

Hi Paul   
  
 This build has the fix (and the autocomplete list has been updated as well) : [http://downloads.finalbuilder.com/downloads/finalbuilder/700/FB700\_1847.exe](http://downloads.finalbuilder.com/downloads/finalbuilder/700/FB700_1847.exe)

---

<div class="post-metadata">

### Author: ![zunzster](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/zunzster/32/40_2.png) [@zunzster](https://www.finalbuilder.com/forums/u/zunzster)
#### Post date: [April 20, 2012, 7:41am UTC](https://www.finalbuilder.com/forums/t/options-object-for-delphi-in-finalbuilder-7/1972/4 "2012-04-20T07:41:02Z")

</div>

Thanks Vince - I’m downloading it now.
