Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Program Error
Message
From
22/05/2004 22:52:15
 
 
To
22/05/2004 21:14:40
Randy Hooper
Ranco Business Software
Tampa, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00906229
Message ID:
00906279
Views:
13
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
Map
View

Click here to load this message in the networking platform