Delete Variable command

Alex Tweedly alex at tweedly.net
Sun Mar 26 15:27:07 EST 2006


Mark Smith wrote:

>Bob, as you've found, delete variable will only work on a variable
>that has been declared (local or global) or created  by assigning a
>value to it inside a handler. In the latter case, it will be deleted
>anyway when the handler exits.
>
>If you simply want to free up memory, you can "put empty into myVar",
>which will replace whatever was in the variable with, well, empty. The
>variable will still exist of course, and if it didn't before, it will
>now, but it'll be taking up very little memory.
>
>  
>
Or you can do
  put empty into myVar
  delete variable myVar

-- 
Alex Tweedly       http://www.tweedly.net



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.1/292 - Release Date: 24/03/2006




More information about the Use-livecode mailing list