Variable value has "%" issue

Hi all :

   I have a problem in replacing variable in Finalbuilder..

   I have a variables and it's value is "%tcc" ...

  When I read the variable and want to replace one data using this variable..

  FinalBuilder process told me failure...and show message "Missing % after tcc"

  does anyone encounter this problem ?

  Please help......

 

Jerry

 

Hi Jerry,

Thanks for your post, sorry to hear you’re having problems.

Variable expansion in Automise is actually recursive by default, so Automise will keep looking for more variable references in the contents of the variable.

To disable this, add an exclamation point in front of the variable name in the reference - ie use %!VariableName% instead of %VariableName%.

Regards,

Angus

Hi Angus :

Thanks for your help…
I try your solution … and find it works…

But the result is not my expectation… becuase when it replaces the data, it will only use “tcc” to replace if the variables value is “%tcc”…

how could I still retain the original variable value("%tcc") when I use the variable to replace data ?

Best Regards,
Jerry

Hi Jerry,

If this is actually the case, that sounds like a bug. Can you let us know exactly what version of Automise/FinalBuilder you are using, what action you are using, and precisely how you are referencing the value, please?

Regards,

Angus

Hi Angus:

I use FinalBuilder 5 and execute “Read ini File” action to read the varialbes in INI Files.

Then use “Text Replace(Deprecated)” action to replace varialbes…


please see the attachment for the detail…thanks

Jerry

Hi Jerry,

The attachment didn't seem to submit, sorry. You may need to zip the files.

What version of FinalBuilder 5 are you using (you cand find the version number under Help->About FinalBuilder.)

- Angus

Related to the previous reply

Add the attachment

data.zip (16.304 KB)

Hi Angus :

   I use Finalbuilder 5.5.0.348

 

Jerry

Hi Jerry,

I think I mightn't have explained myself properly to you before. The %! needs to be where the variable is referenced.

So if the variable you are using PROJECT_CONFIG_PASSWORD (on the Text Replace tab, in the screenshot) then you need to reference it as %!PROJECT_CONFIG_PASSWORD%, on that page.

Hth.

- Angus

PS I've moved this thread to the FinalBuilder -> General Discussion forum because it refers to FinalBuilder, not Automise.