Like,
Then in some section:
Function DoYourThings
DoSomeStuffTo ${variable}
DoSomeOtherStuffTo ${variable}
FunctionEnd
And the DoYourThings-function receives "c:\temp\blahzor.txt" and some variable that can be accessed. Simple :P
Call DoYourThings "c:\temp\blahzor.txt"
Of course that does not work, Call won't accept parameters.
Also, I was not able to declare a changable variable as public, to do the same thing a harder way, like this:
This does not work either, DoYourThings-function can't access SOMEVAR
var SOMEVAR
Function DoYourThings
DoSomeStuffTo ${SOMEVAR}
DoSomeOtherStuffTo ${SOMEVAR}
FunctionEnd
Section "SomeSection"
StrCpy "$SOMEVAR" "c:\temp\blahzor.txt"
Call DoYourThings
SectionEnd
😢