destroy

beasscript-logo-small

destroy a declared object or function

 

destroy=object

// declare datastore

declare=lds=ue_datastorevalues

// .. script

// destroy datastore

destroy=lds

 

destroy=function=[functionname]

destroy a global function

// define..

global function helloworld

// script

end global

 

// startscript

helloworld()

destroy=function helloworld

 

destroy=var=[variablename]

destroy the variable, which is declared with "setvar"

examle

setvar=ls_var="hello world"

destroy=var=ls_var

messagebox=<ls_var>

display "<ls_var>"

 

destroy=varlist=[variablename1,variablename2,variablename3...]

destroy the list of Variables which are declared with setvar

setvar=ls_1=red

setvar=ls_2=blue

setvar=ls_3=green

destroy=varlist=ls_1,ls_3

message=<ls_1> <ls_2> <ls_3>

display "<ls_1> blue <ls_3>"