On Dec 15, 2010, at 5:10 PM, Aparajita Fishman wrote:

> NO!!!! If you don't explicitly clear a local collection, it isn't cleared 
> until the method is exited.

After about 7 years of using Active4D, I didn't know that until today!  I knew 
about the clearing at the end of the method, but didn't realize until a couple 
hours ago that assigning a new collection to the same variable creates a new 
handle and the old one is still there. Remember, I've never programed in 4D so 
handles are not a subject I knew a lot about.  Guess that is why my attempts to 
do these utility scripts never worked that well.

Don't remember seeing that in the manual, but then I've missed other things 
over the years. 

I guess a follow_up  question is: If I put the guts of the loop in a method, 
does the method clear the local collection when it ends? I tried deep clearing 
my collections and it still bogged down after about 500 records.

Steve




_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to