>>On key label F11 do ShiftWindowState >> >>Procedure ShiftWindowState >> If thisform.WindowState= 0 >> thisform.WindowState= 2 >> Else >> thisform.WindowState= 0 >> Endif >>Endproc>
_screen.WindowState = BITXOR(_screen.WindowState,2)Or
On key label F11 _screen.WindowState = IIF(_screen.WindowState=0,2,0)But I prefereed to make it more readable. :-)