Develop > Programming Guide > System Language reference > List: RAD functions > RAD function: sysinfo.get("Display")

RAD function: sysinfo.get("Display")

A RAD function that returns the following:

  • Returns gui if the user is running a GUI client.
  • Returns text if the process is not running through a GUI client, such as a background process.

Function

sysinfo.get("Display")

Format

$info=sysinfo.get("Display")

Example

$display=sysinfo.get("display")

After execution, the $display variable is gui if the user is running a Windows session.

If sysinfo.get("Display")="gui" then (...)
If index(sysinfo.get("Display"), "gui")>0 then (...) 
If sysinfo.get("Display")~="text" then (...)