I have a question need your help . I use Final Builder 5 to replace Unicode text . But The wording is not replaced by the variable value and it is replaced by the variable name.
Like the belows:
The variable name : %AAA% The variable %AAA% value : BBB
Original sentences : I am a #NeedReplacedWording# After replaced , it should be => I am a BBB . But Now , it changed to be => I am a good %AAA%
It doesn't replace by variable value , but replace by variable name... ( it could work in FinalBuilder3 but it fails in FinalBuilder5) Does anyone encounter this problem.... Please Help...
I'm not quite sure what you mean by this, but do you mean that you have the following setup:
[b]Variable Name[/b]
[b]Variable Value[/b]
NeedReplacedWording
%AAA%
AAA
BBB
If this is the case, you'll need to check the "IsMacro" option on variable NeedReplacedWording. This tells the variable to expand any variable references in its value, each time the value is accessed - so you'll always get the current value of the variable.
My apologies if I've misinterpreted the problem. If you could explain some more, that would be great. Alternatively, could you email an example project and text file, to support at finalbuilder dot com?
Regards,
Angus
PS The problem may possibly be to do with the type of Unicode file. Do you know what Unicode format it is in?
PPS Just so you know, I deleted the duplicate post on the Automise forum.
I provide one sample. I want to replace #variable# in aa.htm by %AAA% value "BBB"
so the original sentence is => you could replace #variable# after replaced ,it should be => you could replace BBB but now it becomes => you could replace %AAA%
If still don't understand , please refer to the sample.
we found a solution to solve the problem. we added script in Script Editor when replacing variable and cancel to assign variable name in ReplaceText TextBox of the Text Replace(Unicode) in GUI.