Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setfocus on 1st (new) record not working
Message
 
To
28/03/2000 21:26:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00351839
Message ID:
00351910
Views:
21
>I'm doing the setfocus() in the click event of a cmdadd. I have placed the nodefault command several places (based on info from searching other messages) with no luck. Remember, the only time it doesn't work in when the table is empty and the first record is appended. Any hints?

Jamie,

Thisform.Refresh before you SetFocus. The table is at EOF at first and EOF causes all controls that access data to be disabled and not allowed to accept focus. If you;
APPEND BLANK
Thisform.Refresh()
Thisform.text1.setfocus()
You should get what you want.
Previous
Reply
Map
View

Click here to load this message in the networking platform