Hi all,
Can someone please help me understand when & why you might use the methods outlined in “Working with Variables.pdf” instead of just assigning the variable using a writer.appendLine()?
It seems like the variable has to be initialized with writer.appendLine("global var=somedata")
to avoid the ol’ “name is not defined” problem at compile.
…so why not just use writer.appendLine("var=someotherdata")
when we need to change the variable?
seems like the expressionbuilder-variableFactory-createGlobalVariable-undoredo-undoablechanges-datamodel.set() thing is WAY more keystrokes than appendLine…but I must be missing the value of it…
someone please set me straight?