Flare won't pick up values from variables file General.flvar

This forum is for all Flare issues not related to any of the other categories.
Post Reply
Paul_N
Propeller Head
Posts: 57
Joined: Mon Feb 09, 2015 5:57 am
Location: Yorkshire, UK

Flare won't pick up values from variables file General.flvar

Post by Paul_N »

I'm using Flare 2020 R3 to produce HTML5 output with Tripane skin.

I have some docs that mention the current version of our software, so rather than type it in many times for each release I've added a variable name VersionNumber and a value 2021.0 to Project > Variables > General (the file called General.flvar).

It appears fine in the flare project in XML Editor and Text Editor when I insert the variable.

But when I output the content it's picking up a seemingly random old version (which happens to be 2019.1) and inserts it into the HTML! I've tried deleting the /Contents folder and running Clean target but the spurious variable still gets added to the output.

Has anyone experienced this problem and knows how to fix it?

Thanks
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Flare won't pick up values from variables file General.f

Post by NorthEast »

Variable definitions can be overwritten in your target, and also in topics and snippets.

It's most likely that the variable definition has been overwritten in the target, on the Variables tab.
See help: https://help.madcapsoftware.com/flare20 ... itions.htm

If that's not the problem, and the variable is used in a snippet, the variable definition could also be overwritten in either (a) that topic or (b) that instance of the snippet.
https://help.madcapsoftware.com/flare20 ... ppets1.htm
Paul_N
Propeller Head
Posts: 57
Joined: Mon Feb 09, 2015 5:57 am
Location: Yorkshire, UK

Re: Flare won't pick up values from variables file General.f

Post by Paul_N »

Thanks Dave, that fixed the problem. I changed the values in the target and they applied to the output.
Post Reply