GetGlobal(var,newval="£NO_NEW_VAL£")
{
Global
If (!RegExMatch(var,"^[a-zA-Z0-9#_@\$\?\[]]{1,254}$"))
Return 0
If (newval == "£NO_NEW_VAL£")
Return % %Var%
Else {
%var% := newval
Return 1
}
}
Example:
FuBar = Hello World!
Message()
Message() {
MsgBox % GetGlobal("FuBar")
}
No comments:
Post a Comment