Skrommel
Function(variable) { Global %variable% %variable%:=1 }
Function(variable) { Global %variable% %variable%:=1 }
Why won't Global accept this?
Function(variable) { Global %variable% %variable%:=1 }
Function(VarName) { Local Var Variable:=Varname %Variable%=1 }
I'm afraid Global %variable% is the only alternative.Skrommel
Function("Hello") MsgBox, %Hello% ; displays "1" Return Function(VarName) { Local Var Variable:=Varname %Variable%=1 }
I doubt it. Can you post an example of code that doesn't work, showing evidence of this need?I was thinking of using it to build GUIs, which requires global variables, so I'm afraid Global %variable% is the only alternative.