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

Click here to load this message in the networking platform