Heretic
Resource contributor
- Messages
- 6,830
- Country

Can I compose strings, ideally from macros?
Let's say I have:
And then do:
The expected result, when I call "Compose" somewhere* is:
But I usually get:
Am I doing something wrong or is this an XML limitation?
Strings with a single macro in them usually work.
*I'm using the resulting string for load/save operations in Logger.
- Edit:
Notice the lowercase "p" in "@Setprefix"?
Yep, that's the culprit. The string composes just fine now.
*Head -> desk*
Let's say I have:
Code:
<Macro Name="SetPrefix">A_</Macro>
<Macro Name="SetName">Name</Macro>
<Macro Name="SetSuffix">_B.txt</Macro>
And then do:
Code:
<Macro Name="Compose">'@Setprefix@SetName@SetSuffix'</Macro>
The expected result, when I call "Compose" somewhere* is:
Code:
A_Name_B.txt
But I usually get:
Code:
@SetprefixName_B.txt
Am I doing something wrong or is this an XML limitation?
Strings with a single macro in them usually work.
*I'm using the resulting string for load/save operations in Logger.
- Edit:
Notice the lowercase "p" in "@Setprefix"?
Yep, that's the culprit. The string composes just fine now.
*Head -> desk*
Last edited:


