>I have this code...
>
>
> WITH THIS.TimerObj
> *-- Send the header of this column to the timer
> loHeader = THIS.Parent.Header1
> .HeaderObj = loHeader
>
>
>I'm assigning it to a variable first for debugging. The timer's HeaderObj property has an assign method. When it gets there, sometimes the header is passed in properly and sometimes it shows up as null. If I suspend, I can see that loHeader lways has a value.
>
>Is there some bug with ASSIGN and objects? Why would it work sometimes and not others?
>
>Thanks,
>
>Michelle
Michelle,
(1) Any means of getting rid of the timer ?
(2) maybe
>
WITH THIS.TimerObj
.Enabled = .F.
loHeader = THIS.Parent.Header1
.HeaderObj = loHeader
.Enabled= .T.
(3) Do not know if the following will apply to your situation
I have found out that the timer event may kick in during refreshes of objects (and maybe other events/methods too, I do not know)
When this happens, the THIS in the timer may refer to another object which method/event was interrupted. This may lead to errors and unforeseen situations
I do not know whether this applies to you
The way I got around this ..
Timer.Event()
local obj
obj = this
if( obj.BaseClass == 'Timer' )
else
endif
I can only guess. Maybe if the timer fires, the THIS of the assign method is wrong
You may add the above code to the assign method as well
Gregory