# Setting Action.FrameWorkType in script

**URL:** https://www.finalbuilder.com/forums/t/setting-action-frameworktype-in-script/2067
**Category:** Discussion
**Created:** [January 8, 2013, 12:54pm UTC](https://www.finalbuilder.com/forums/t/setting-action-frameworktype-in-script/2067 "2013-01-08T12:54:45Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rwerning](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/65b543/32.png) [@rwerning](https://www.finalbuilder.com/forums/u/rwerning)
#### Post date: [January 8, 2013, 12:54pm UTC](https://www.finalbuilder.com/forums/t/setting-action-frameworktype-in-script/2067/1 "2013-01-08T12:54:45Z")

</div>

I have a large number of projects that are being built as part of our automated system and make use of the Project Global Script to set build values that are needed as we upgrade through various versions.&nbsp;

With XE2 and the current version of FB, there is a Delphi option for Framework Type (NONE, VCL, FMX) - is there a way to set this in the script? &nbsp;I can't find a list of the enumerated TFrameworkTypes anywhere.

Thanks,

&nbsp;Rich Werning

---

<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: [January 8, 2013, 2:32am UTC](https://www.finalbuilder.com/forums/t/setting-action-frameworktype-in-script/2067/2 "2013-01-08T02:32:51Z")

</div>

Hi Rich   
  
 None = 0   
 VCL = 1   
 FMX = 2   
  
 Note that changing them in script will not change the NamespacePrefixes property (that is a design time feature), so you would need to set that property in script also.

---

<div class="post-metadata">

### Author: ![rwerning](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/65b543/32.png) [@rwerning](https://www.finalbuilder.com/forums/u/rwerning)
#### Post date: [January 8, 2013, 5:18am UTC](https://www.finalbuilder.com/forums/t/setting-action-frameworktype-in-script/2067/3 "2013-01-08T05:18:00Z")

</div>

Thanks, that helps answer the first question. Now - how do I update the&nbsp;NamespacePrefixes in script? &nbsp;I don't see that as an available in the script insight (VBscript) for the Action, and can't find any reference to it in the help files.

Thanks!

---

<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: [January 9, 2013, 3:27am UTC](https://www.finalbuilder.com/forums/t/setting-action-frameworktype-in-script/2067/4 "2013-01-09T03:27:37Z")

</div>

It’s a bug, the property hasn’t been exposed to scripting directly via the action object, however you can still access it this way (no insight )

`Action.CompilerOpt.NamespacePrefixes = ``"System"`

  
Or you can install this build (if you have current SA) :   
  
[http://downloads.finalbuilder.com/downloads/finalbuilder/700/FB700\_2115.exe](http://downloads.finalbuilder.com/downloads/finalbuilder/700/FB700_2115.exe)   
  
and use   
  

`Action.NamespacePrefixes = ``“System”`
