fgl_settitle() allows you to set the title of a program window. This will override the default action, which is to display the name of the current program:
The function takes one argument, which is a string or variable that contains the new title of the window that is to be displayed.
MAIN
DISPLAY "fgl_settitle() demo application" at 1,1
CALL fgl_winmessage("fgl_settitle()","Specify a program title for the titlebar (GUI only) at runtime using fgl_settitle()", "info")
CALL fgl_settitle("This is my new title specified using fgl_settitle()")
DISPLAY "END of fgl_settitle() demo application" at 2,1
CALL fgl_winmessage("fgl_settitle()","Press OK to close the demo application", "info")
END MAIN