General information
Category:
Coding, syntax & commands
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.
Getting what error? You never did say. What is the line of code that errors and where is the code exactly?
> I have had to re-load my VFP 6.0 this is when this problem has started.
So, this is in version 6.0...what version exactly? Look in the Help|About for the build #. If you haven't applied them, be sure to. SP 5 was the last one. I don't know that there was such a bug in an early release of 6.0...it's been a long time. But you'd want to be up-date anyway.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only