Is it possible to delete a variable with ZScript? I know you can allocate memory blocks, but can you assign a variable to that and then delete it? I have confused them both with the following script:
// Script
[IButton, “Delete variable”, “Delete variable”,
[IConfig,4.73]
// set a string
[VarDef,s, “Gwen Stefani!”]
[MVarDef,s, 9]
[Note, s,1]
[If,[MemGetSize,s],
[MemDelete, s]
, //else
[Note,“No memory found”,3]
]
[Note, s,1]
]// End of ZScript
Cheers