>I have tried this approach, but for some reason the timer event doesn't seem like it is firing at all. Since I do not know ahead of time which textbox will be picked...I set up a property to hold the location. I have one for the previous location as well as the current location.
>
>The timer has:
>
>enabled = .t.
>interval = 500
>
>timerevent() is something like the following:
>
>tmpcurrballloc = thisform.currballloc <- shows which textbox forecolor to change
>
>if &tmpcurrballloc = RGB(255,255,255)
> &tmpcurrballloc = RGB(128,128,128)
>else
> &tmpcurrballloc = RGB(255,255,255)
>endif
>
>Thanks.
Try using a name expression instead of macro substitution. Name expressions execute faster, which may make the code run properly inside the timer event. Something like:
if (tmpcurrballloc) = RGB(255,255,255)
etc....
You may also want to increase the interval between events, just to test if the timer can process all the code in the timer interval.
Does the thisform.currballloc property hold a reference to the desired textbox?
Hope this helps.
Ryan Hirschey