Name
GetFrontScreen -- get name of frontmost screen (V8.0)
Synopsis
n$ = GetFrontScreen()
Platforms
AmigaOS and compatibles only

Function
This function can be used to get the name of the screen that is currently up front. In case the screen isn't a public screen, an empty string is returned.

Note that in a multitasking environment like AmigaOS, all screens that aren't owned by your application can disappear at any time and their stack order can change as well, so you need to be prepared that at the time this function returns the screen is no longer front or even doesn't exist any more.

Inputs
none

Results
n$
the screen that is currently front (see warning above concerning the reliability of this information)
Example
ShowScreen("WORKBENCH")
Print(GetFrontScreen())
This is not guaranteed to return "WORKBENCH", although it will normally do so. See warning above.

Show TOC