Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Out of Setfocus
Message
 
 
To
10/09/2008 10:14:06
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01346328
Message ID:
01346332
Views:
10
>Hi All:
>
>I'm trying to get the cursor into the field that's missing data using Setfocus(). It works on some text fields, but not others and I can't for the life of me figure out why. I pass the object.name back to the form and call Setfocus() in the Show() of the page. The text fields have different pedigrees, but that shouldn't matter.
>Can someone tell me what governs whether a field accepts a setfocus and another not? Is there another way of doing this or of forcing it?
>
>Thanks,
>Luke

If the field is on the different page you first need to activate the page. thisform.ActivePage = 3 (if the textbox is on the 3rd page).
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform