>OK, what's a zombie object?
>
A zombie object is an object that seems alive,
but it is really dead.
Until now I could not find a way to distinguish a zombie
from an true object without generating an error!!!!
Does anyone have an idea?
CLEAR
x=CREATEOBJECT("testClass")
? PEMSTATUS(x,"SomeMember",5)
? PEMSTATUS(x,"SomeMember",3)
? VARTYPE(x.SomeMember)
? VARTYPE(x.SomeMember,.T.)
? TYPE("x.SomeMember")
? x.SomeMember
? AMEMBERS(ax,x.SomeMember)
ON ERROR ? MESSAGE()
? x.SomeMember.Name
DEFINE CLASS testClass AS Custom
ADD OBJECT SomeMember AS TextBox
PROCEDURE SomeMember.Init
RETURN .F.
ENDDEFINE
>
>
>>>Hi everybody,
>>>
>>>I'm looping through the all columns in the grid using for each loColumn in this.Columns and I'd like to set DynamicCurrentControl property for most of the columns. I'd like to check first, if my column has a check1 and check2 controls. I'm not exactly sure how? Using type or getpem?
>>>
>>>Any ideas?
>>>
>>>Thanks in advance.
>>
>>PEMSTATUS,VARTYPE,TYPE can do the job.
>>
>>BUT!
>>If check1 is a class's member
>>and check1.init returns .F. or Column.RemoveObject('check1') is called,
>>they return a zombie object.