omron — Examples

DELETES monitor command DELETES monitor command Syntax DELETES @task:program string_var , ..., string_var Function Delete the named string variables from the system memory. Parameters @task:program These optional parameters specify the context for the string variables. The string variables will be treated as though they are referenced from the specified context. If no context is specified, the string variables will be considered global. See Variable Context for details on specifying context. string_var Name of a string variable to be deleted. Details Deletes an arbitrary number of string variables.

Thus, this operation can be used to recover the memory storage space occupied by string variables that are no longer needed. Once a string variable is deleted, it cannot be referenced by any eV+ operation or function. An attempt to reference a deleted variable will result in an error message just as if the variable had never been defined. If an array element is specified, that element is deleted. The entire array is deleted, however, if an array name is specified without explicit index(es) (for example, "DELETES $a[ ]"). If one or more of the right-most indexes of a multiple-dimension array are omitted, all the elements defined for those indexes are deleted.

(For example, the command "DELETES $a [3,2,]" deletes the elements "$a[3,2,0]" to "$a[3,2,last]". The command "DELETES $a[3, , ]" deletes all the elements "$a[3, i, j]" for all "i" and "j". The command "DELETES $a[, , ]" deletes the entire array). Examples Delete the string variable "$input". DELETES $input Delete the string variable "$response", which is a local variable in the program "menu". DELETES @menu $response eV+Operating System Reference Guide, 2.x,18321-000 Rev A Page 70