Thread: TStatic Objects
View Single Post
  #1  
Old 02-08-2009, 08:25 PM
The_Kez The_Kez is offline
N-Pulse Asst. Manager
The_Kez's Avatar
Join Date: Dec 2007
Posts: 106
The_Kez is on a distinguished road
Send a message via MSN to The_Kez
TStatic Objects

Is there a way to delete attributes from a TStaticVar so that it isn't returned from obj.getdynamicvarnames() ?

I know if you create such a function like...

PHP Code:
function Test() {
  
temp.obj = new TStaticVar();
  
obj.val  5;
  
obj.destroy();

This would destroy the object, obviously. I need something more like...

PHP Code:
function Test() {
  
temp.obj = new TStaticVar();
  
obj.val  5;
  
obj.val.destroy();

I've tried using .destroy() on the attribute, and setting it to NULL + using clearemptyvars(), but neither of those work.
Any help would be appreciated
Reply With Quote