Window_GetMainWindowTitle()

Examples


The Window_GetMainWindowTitle() function returns the window title of a form’s main window.

Syntax

Window_GetMainWindowTitle(prod_ID, form_name)

Parameters

prod_ID An integer representing the product ID of the dictionary containing the form for which you wish to retrieve the main window’s title.

form_name A string containing the name of the form for which you wish to retrieve the main window’s title.

Return value

String

Comments

A window’s title is the string that appears in the window’s title bar in test mode or at runtime. The title is specified in the window’s Title property.

If you are in tools mode, or have yet to add product information to your dictionary, the product ID for your dictionary will be zero. The product ID for Dynamics.dic is always zero.

This function returns the title of the first window listed for the form in the Form Definition window. This is also referred to as the form’s parent, or main window. A main window will open first when the form opens.


Documentation Feedback