>Hello Everyone,
>
>If multiple forms are displayed at the same time, is it possible to programatically give a particular form the focus?
>
>What I'd like to see is the form that loses the focus has its title bar deselected and the form that receives the focus have its title bar selected.
>
>Cheers and thank you.
>
> Andy
This swhitch between first 2 opened forms. You can extend this if you want to switch between many opened forms.
(no error checking here and not tested)
LOCAL lcWndName
IF _SCREEN.FormsCount > 1
IF _screen.ActiveForm.Name == _screen.Forms(1).Name
lcWndName = [ACTIVATE WINDOW ]+_screen.Forms(2).Name
ELSE
lcWndName = [ACTIVATE WINDOW ]+_screen.Forms(1).Name
ENDIF
&lcWndName
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.