Calculates flags.
Calculates either the icon or window flags for a particular window or icon. Requires WimpBASIC2 runtime modules and RISC OS 3.1 or above.