Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining the control with the focus on a pageframe
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00295017
Message ID:
00295092
Views:
29
>I have a series of checkboxes on a page within a pageframe that, when clicked ON, should enable and set the focus to a text box to enter text for the option defined by the checkbox. Each checkbox is also bound to a field in a table and so are the text boxes.
>
>I use the Click method of the checkbox to enable and set the focus to the text box when the checkbox value is true. I also want the text boxes enabled or disabled based on the checkbox value when I change records in the table so I call the checkbox Click method from the form's Refresh method.
>

How about putting the enable/disable code in a separate location, (like a custom form method), and calling it from both the click event of the checkbox, and the form.refresh.

Calling a control's click method is usually an indication that you have some code in the wrong place.
Erik Moore
Clientelligence
Previous
Reply
Map
View

Click here to load this message in the networking platform