The TAB scripting object doesn't have a flatview property. Is there another way of testing for current flat view mode from within a script? My use case is that I want to enable or disable dialog buttons depending on flat view status.
You could use Command.IsSet() against the tab, with the command e.g. Set FLATVIEW=Mixed
.