Hi!
Did you tried just put "Messagebox()" function here and see if timer event fires at all?
I just put a timer on the form with your code (except function fcBMO_GetTitle() I used just sys(3)) and it worked ok. Seems something inside that function.
Also, HOW you did created that timer object? Did you put it on the VFP form? Is it independent object or object on _Screen form?
Are you sure fcBMO_GetTitle() return different values across the time? If it takes value from the backend table to show changes by another user, you require to use refresh() command for views and SET REFRESH command for unbuffered data to specify the interval of refreshing of internal buffers. You can refresh record immediately by locking it or by sys(1104) function.
HTH.
>My timer execute the following code:
>
>***** MyTimer.timer *******
>this.enabled=.F.
>local lcTitle
>lcTitle=alltrim(fcBMO_GetTitle())
>if thisform.txtTitle.value<>lcTitle
> thisform.txtTitle.value=lcTitle
> thisform.refresh
>endif
>this.enabled=.T.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.