Matt Lovinger
2005-02-03 20:49:29 UTC
Hi All,
I have a form in which I want to control user action very closely. There are several ways that the transaction can fail, and I want to set controls to their original state (including focus) after each attempt,whether or not they are successful.
.
The C/SIDE help indicates that there is a function "ACTIVATE" that will set the focus to a particular control or form. I have tried this syntax= 'CurrForm.ControlName.ACTIVATE' . This command seems to have no effect, or at least an erratic effect.
I checked the C/SIDE help a little closer and found this:
When you call this function on a control, the system makes the control the active control on the form. If the control is already active, the system gives focus to the control. If the control is not active, the system gives it focus the next time the form is activated. You must load the form before you can activate its controls.
I tried to call ACTIVATE twice in a row (Once to make the control active, then again to set the focus). Again, no discernable effect. Is there another method I can use to set the focus to a control immediately?
Matt Lovinger
Hamilton Aerospace Technology
I have a form in which I want to control user action very closely. There are several ways that the transaction can fail, and I want to set controls to their original state (including focus) after each attempt,whether or not they are successful.
.
The C/SIDE help indicates that there is a function "ACTIVATE" that will set the focus to a particular control or form. I have tried this syntax= 'CurrForm.ControlName.ACTIVATE' . This command seems to have no effect, or at least an erratic effect.
I checked the C/SIDE help a little closer and found this:
When you call this function on a control, the system makes the control the active control on the form. If the control is already active, the system gives focus to the control. If the control is not active, the system gives it focus the next time the form is activated. You must load the form before you can activate its controls.
I tried to call ACTIVATE twice in a row (Once to make the control active, then again to set the focus). Again, no discernable effect. Is there another method I can use to set the focus to a control immediately?
Matt Lovinger
Hamilton Aerospace Technology