# Load variables from INI and re-evaluate value

**URL:** https://www.finalbuilder.com/forums/t/load-variables-from-ini-and-re-evaluate-value/735
**Category:** Discussion
**Created:** [January 31, 2008, 4:06am UTC](https://www.finalbuilder.com/forums/t/load-variables-from-ini-and-re-evaluate-value/735 "2008-01-31T04:06:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![chanmy8](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/f475e1/32.png) [@chanmy8](https://www.finalbuilder.com/forums/u/chanmy8)
#### Post date: [January 31, 2008, 4:06am UTC](https://www.finalbuilder.com/forums/t/load-variables-from-ini-and-re-evaluate-value/735/1 "2008-01-31T04:06:53Z")

</div>

Hi,

I have variables as below

PROJECT\_PATH = 'C:\MyProject'

SOURCE\_PATH = 'Trunk\Mainline\'

CURRENT\_PROJECT\_PATH = %PROJECT\_PATH%%SOURCE\_PATH%MyApplication

The content of variable SOURCE\_PATH could be vary, trunk or may from branch folder. Therefore, I would like to load this variable from INI file. Added Load VAriables from INI action, and it able to load my variable.

The problem is, FB doesn't re-evaluate my CURRENT\_PROJECT\_PATH variable. It would still remained as 'C:\MyProject\Trunk\MainLine\MyApplication' even though my value in INI file has been changed to 'Branches\1.1.1'.

How could I solve this problem?

Thank you

&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: [January 31, 2008, 8:07am UTC](https://www.finalbuilder.com/forums/t/load-variables-from-ini-and-re-evaluate-value/735/2 "2008-01-31T08:07:34Z")

</div>

Change the CURRENT\_PROJECT\_PATH variable to be a Macro variable, that will force it's default value expression to be re-evaluated every time the variable reference.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [February 12, 2008, 4:12am UTC](https://www.finalbuilder.com/forums/t/load-variables-from-ini-and-re-evaluate-value/735/3 "2008-02-12T04:12:44Z")

</div>

If I load in a variable from an INI file that contains a reference to another variable, it is never expanded.&nbsp; And if i set it to be Macro variable, i cannot load it in from an INI file

Is there any reason why I cannot load in variables from an INI file that are defined as Macro variables?&nbsp;

E.g.&nbsp;I would like to load both SOURCE\_PATH and CURRENT\_PROJECT\_PATH&nbsp; from an INI file and have them evaluate correctly
