Setting Delphi compiler option "Record field alignment" does not work

Hi,
I do not know why, but FinalBuilder does not use correctly the value in selected .dpr Delphi-project file. It sets sometimes default value "8" when it should use the value in project file - value is "1".
Is it possible to set Delphi6 compiler option "Record field alignment" anyhow by using script.
I find only command "Action.AlignFields" which is boolean -type.
-JP

Hi JP,

Have you modified the record field alignment in the Compiler tab of the action?

If you want to set the record field alignment from script, you have to go via the CompilerOpt object, eg.

Action.CompilerOpt.RecordFieldAlign = fa2

where valid values of RecordFileAlign are:
fa1
fa2
fa4
fa8

hth.
.t8

Hi Tate,

> Have you modified the record field alignment in the Compiler tab of the action?

Yes, but it loads it incorrectly when I click that (Load settings from Project file) -button. It sets it to <8>.

> If you want to set the record field alignment from script, you have to go via the CompilerOpt object, eg.

Ok. I did not find this from FinalBuilder help.

I will try it - thx!

Have you modified the record field alignment in the Compiler tab of the action?
>
>Yes, but it loads it incorrectly when I click that (Load settings from Project file) -button. It sets it to <8>.

ic. Have a look in your .dof file for the A key in the [Compiler] section, it should be at the top of the file and look like this:

[Compiler]
A=1

what’s the value of A in your dof file.

FinalBuilder will default to 8, but should correctly read the values: 1, 2, 4 and 8

.t8

Our .dof setting is…

[Compiler]
A=1


hmm, strange, that should work. can you send us your FB project and your dpr and dof file and we’ll take a look more closely, thanks. (send to support at finalbuilder dot com)