Array question again.

Jan Schenkel janschenkel at yahoo.com
Tue Feb 10 10:45:29 EST 2004


--- Kevin <nnoydb at excite.com> wrote:
> 
> 
> My question is regarding the underpinnings more than
> anything else.  If I put empty into a[0] is a[0,1]
> a[0,2] ... also garb rage collected or must I set
> each individual element equal to empty to ensure
> collection?
> 

Hi Kevin,

You'll have to clear out the individual elements ; if
you want to ensure garbage collection, use the
'delete' command instead of 'put empty into'
Example :
--
  delete local tLocalArray[0,1]
  global gGlobalArray
  delete global gGlobalArray[5,6]
--

Hope this helped,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html


More information about the use-livecode mailing list