THE FOLLOWING IS DEFINITELY WRONG: Get(LayoutViewState)
0 (zero) if the database file is in Form View
1 if the database file is in List View
2 if the database file is in Table View
Not only wrong but confusing it get's when a beginner goes on reading :
" If there are multiple windows open in the current file, each window can have its own layout view state value, but results are returned for only the foreground window. "
URGEND CORRECTION TO BE DONE:
It's not the file but the window or layout whitch is in the view !! but certainly not the database file !
To me it looks like this peace of documentation was not revised carefully since FM Version 3.4 !!
To tell You in my mother tounge:
Es ist doch nicht die Datei sondern das Layout das sich in der Ansicht befindet !! oder ev. das Fenster. aber garantiert nicht die Datei.