>Randy-
>
>>cannot call setfocus from within a When, Valid, Rangehigh or range low event. I'm trying to setfocus in a grid from a command button in the click event. I have done this before without error, any Ideals.
>
>I'm unclear on the problem. You're calling the Grid's SetFocus() from a button Click()? And it's not working? What does this have to do with the limitation on calling SetFocus() which would seem to not apply?
>
>BTW, putting the SetFocus() in a control's LostFocus() can work quite well in lieu of using the Valid().
I'm in agreement with what you are saying, I don't know why I'm getting this error. I have had to re-load my VFP 6.0 this is when this problem has started. calling the grid focus from a command button should not be a problem and have done this in many of my applications, but for some reason I'm getting this error. Do you think it could do with any of the service packs.
Randy
Foxpro is a sweet puppy
'cept it barks every now and then =)