Include Project

Hi Support Team,

Today I worked with an included project. Suddenly it occured that the FInalBuilder IDE stopped to set the variables for the project included. Please refer to the projects attached. You'll need to change the path of/in the 'Include Project'-action in "20110830 Include Project.fbp7" to meet the correct location on your PC.

When you start "...Include Project" it invokes "...Included Project". The action is instructed to set the called projects variables (e.g. New to "V2.3.4.567"). In the called project the variable "New" for example is predefined with a value of "V0.0.0.0". Earlier this day the same FinalBuilder executable (build 1515) invoked the Included Project which has showed "V2.3.4.567" in the Message Dialog. Right now the Message Dialog contains "V0.0.0.0".

I wanted to provide you with a sample project from scratch - but I failed to get the same behaviour... Therefore I removed as much actions and variables from my projects I currently developing as long as the error exists.

If you need any further assistance to see the error please let me know.

Best regards

Michael

20110830_Include_Project.fbp7 (18.617 KB)20110830_Included_Project.fbp7 (25.213 KB)

I just spent the last 2 hrs debugging this, only to realise this is not a bug but as designed. If you add a Log Variables action to the Included Project you will see the variables have the correct values.

The issue is that what you are seeing is the default value for the variable vs - %Old%vs%New% which is evaluated before the variables are passed in.

The order of events is :

Included project variables are reset, so their Default Value expression is evaluatated and applied to the variable value - so variable vs = V0.0.0.0_vs_V0.0.0.0

Then the values supplied by the Master project are passed in and applied to the Variable’s Value (not the default value expression).

To achieve what you want, make the vs variable a Macro variable, then it will always evaluate the Default Value expression when you query the variable for it’s value.