There is a bug in how Translator saves and load variables to and from a file when executing a macro. Although the 'Save Variables' macro command successfully writes variables to a file, the 'Load Variables' command has a bug that means it will not load the variables back.
The bug is in IRSSUtils module VariableList.cs in the Load method:
Alternative code that works is:
Chemelli, would you please add this in the next build?
The bug is in IRSSUtils module VariableList.cs in the Load method:
Code:
XmlNodeList variableNodes = doc.DocumentElement.SelectNodes([COLOR="Red"]"VariableList"[/COLOR]);
foreach (XmlNode node in variableNodes)
SetVariable(node.Name, [COLOR="red"]node.Value[/COLOR]);
Alternative code that works is:
Code:
XmlNodeList variableNodes = doc.SelectNodes([COLOR="Green"]"/variables/*"[/COLOR]);
foreach (XmlNode node in variableNodes)
SetVariable(node.Name, [COLOR="green"]node.InnerText[/COLOR]);
Chemelli, would you please add this in the next build?
Italy