Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the focus from a program
Message
From
17/12/2002 08:39:33
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00733600
Message ID:
00733609
Views:
19
>I have a form which calls a program to check the validity of the data on the form. It is so complicated that it must be done when all fields have filled in.
>
>How do I set the focus back to an field in the screen.
>
>Myform1.gauge.setfocus() does not seem to work.
>
>The program is currently called from a command button.
>
>Any ideas

SetFocus() is the common way to do this. I don't know what is going wrong in your case. Perhaps you can try SetFocus() in as simple sample form.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform