Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simple set focus not working
Message
From
28/03/2017 11:43:37
 
 
To
28/03/2017 11:40:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01649441
Message ID:
01649442
Views:
65
>Why, oh, why...
>
>I have a simple form using one table. All the tab orders are correct. I have this in the 'activate' :
>
>IF reccount()>0
>	thisform.list1.SetFocus
>ELSE
>	thisform.txtclient.setfocus
>ENDIF
>DOEVENTS FORCE  &&added to try forcing it, but it makes no difference!
>
>
>NO WAY either will receive the focus with, or without records in the table... Have done hundreds and hundreds of forms, and all work, nut not this one!
>Any ideas will be maaaavlis - thanks!

I have seen cases where you must add a short delay. Worth a try...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform