setvar=[internal variable]=[value] - sets an internal variable
Example setvar
setvar=lart_id=<str_parm.s_parm1> // writes the content of s_parm1 to the variable lart_id
Internal system of variables
BEASCOMMON uses an internal system of variables as long as the window is open.
Set variables with BEASSCRIPT:
setvar=[myVariable]=[value]
Example:
setvar=header="this is a header" The variable HEADER gets the content "this is a header"
Get an internal variable with the interpreter:
message=<myVariable>
Example
message=<header> Displays the content of the variable
if you want return a variable and not a standard place holder or column, use follow syntax
message=<%var("header")>. See Standard Function
if you want to get a variable which does not exist neither as a variable nor as a column the placeholder does not get substituted.
Example:
meldung=<NoVariable>
displays: "<NoVariable>"
To avoid this you can use the prefix "var:"
meldung=<var:NoVariable>
displays: ""
see addvar