pushvar

beasscript-logo-small  

endoflive

pushvar

 

create a copy of current variable, which are set with "setvar"

with popvar you can restore the variables

 

Example:

 

setvar=ls_test=Hello World

pushvar

// display: Hello World

messagebox=<ls_test>

setvar=ls_test=Nice World

// display: Nice World

messagebox=<ls_test>

popvar

// display: Hello World

messagebox=<ls_test>

 

 

Extented pushvar variant

tools=pusvar=<variablename>=<filter>

 

example:

push all Variables with name "e_" in variable "myvariables

 

tools=pushvar=myvariables=e_

 

restoure variables with

tools=popvar=myvariables